simulator: fix TCP connection init on macOS
When `connect()` fails, the state of the socket is unspecified and we need to close the it and create it again. It turns out retrying connect worked on Linux but it didn't on macOS.
Loading
Please register or sign in to comment