Allow double-close just in case in Phy<>

This commit is contained in:
Adam Ierymenko 2015-06-09 16:30:44 +02:00
parent 17ca5be4c1
commit 00aa115898

View File

@ -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);