X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4854380c1b7c0d72fc78ad47220f42fb05d7b17..75d9e502238df95fa53c0030b1fac0d4f43e4025:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 659f709be5..e2423cdd2c 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -1751,6 +1751,12 @@ void GSocket::Detected_Read() { CALL_CALLBACK(this, GSOCK_CONNECTION); } + else if (num == 0) + { + /* graceful shutdown */ + CALL_CALLBACK(this, GSOCK_LOST); + Shutdown(); + } else { /* Do not throw a lost event in cases where the socket isn't really lost */