Skip to content

Commit 43e634c

Browse files
committed
Fix connection condition
1 parent 2659b68 commit 43e634c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/MatlabSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int MatlabSocket::listen(int port, String host)
2323
connection = new StreamingSocket();
2424
connection->createListener(port); //empty string means use localhost address (127.0.0.1)
2525

26-
if (connection->waitUntilReady(false, 500) != 1)
26+
if (connection->waitUntilReady(true, 500) < 1)
2727
{
2828
LOGC("Could not connect.");
2929
connection = nullptr;

0 commit comments

Comments
 (0)