diff --git a/src/ISClient.cpp b/src/ISClient.cpp index 57e5ef455..ce5322130 100644 --- a/src/ISClient.cpp +++ b/src/ISClient.cpp @@ -56,7 +56,7 @@ cISStream* cISClient::OpenConnectionToServer(const string& connectionString, boo string username = (pieces.size() > 5 ? pieces[5] : ""); string password = (pieces.size() > 6 ? pieces[6] : ""); - if (clientStream->Open(host, atoi(port.c_str()), 100) == -1) + if (clientStream->Open(host, atoi(port.c_str()), 100) != 0) { return NULLPTR; }