We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e10de65 commit afee321Copy full SHA for afee321
NetworkInterface.cs
@@ -72,7 +72,7 @@ public void _onConnectStatus(string error)
72
{
73
KBEngine.Event.deregisterIn(this);
74
75
- bool success = (error == "");
+ bool success = (error == "" && valid());
76
77
if(success)
78
@@ -99,7 +99,8 @@ private static void connectCB(IAsyncResult ar)
99
NetworkInterface networkInterface = (NetworkInterface) ar.AsyncState;
100
101
// Complete the connection.
102
- networkInterface.sock().EndConnect(ar);
+ if(networkInterface.sock() != null)
103
+ networkInterface.sock().EndConnect(ar);
104
105
Event.fireIn("_onConnectStatus", new object[]{""});
106
}
0 commit comments