diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 550b3d51b3..874098d3b6 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -328,6 +328,9 @@ void GSocket::Shutdown() assert(this); + /* Don't allow events to fire after socket has been closed */ + gs_gui_functions->Disable_Events(this); + /* If socket has been created, shutdown it */ if (m_fd != INVALID_SOCKET) {