X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d34c30e5535d496c2b08bea971a8abb4a1b34da..168e7d95ea228dcda8b676506fc1c4932d0f12e0:/src/unix/gsocket.cpp?ds=sidebyside 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);