Did I do something wrong?

I was at a bar with some friends, and we were sitting near the entrance. I was zoning out quite a bit but I noticed some guy I use to talk to walk in. And we locked eyes and we were both in shock both of our eyes went big it had been a while since we had seen each other. Then we locked eyes for a second time again. But I felt it was a bit weird especially since he was with another girl and I just turned my whole head towards my friend. And I was talking to my friends the rest of the time not looking around the bar for him because I honestly did not care. But then since I sat near the door I saw him leaving with the girl he came in with like 5 mins later. And I just feel bad if me being there made him uncomfortable to the point he had to leave but I feel like I did nothing wrong.
Did I do something wrong?
Post Opinion