summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Phy.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp
index 8287a780..ec01625b 100644
--- a/osdep/Phy.hpp
+++ b/osdep/Phy.hpp
@@ -739,6 +739,8 @@ public:
if (!sock)
return;
PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock));
+ if (sws.type == ZT_PHY_SOCKET_CLOSED)
+ return;
FD_CLR(sws.sock,&_readfds);
FD_CLR(sws.sock,&_writefds);