diff --git a/pomelo-dotnetClient/src/client/PomeloClient.cs b/pomelo-dotnetClient/src/client/PomeloClient.cs index 3b10495..0b0d3eb 100644 --- a/pomelo-dotnetClient/src/client/PomeloClient.cs +++ b/pomelo-dotnetClient/src/client/PomeloClient.cs @@ -121,7 +121,7 @@ public void initClient(string host, int port, Action callback = null) } }), this.socket); - if (timeoutEvent.WaitOne(timeoutMSec, false)) + if (!timeoutEvent.WaitOne(timeoutMSec, false)) { if (netWorkState != NetWorkState.CONNECTED && netWorkState != NetWorkState.ERROR) { @@ -260,4 +260,4 @@ protected virtual void Dispose(bool disposing) } } } -} \ No newline at end of file +}