diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 862e94c989..becd67f59c 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -722,7 +722,8 @@ GSocketError GSocket::Connect(GSocketStream stream) * connection _if_ blocking sockets are being used. * If connect above returns 0, we are already connected and need to make the * call to Enable_Events now. - + */ + if (m_non_blocking || ret == 0) { gs_gui_functions->Enable_Events(this);