Allow double-close just in case in Phy<>
This commit is contained in:
@@ -739,6 +739,8 @@ public:
|
|||||||
if (!sock)
|
if (!sock)
|
||||||
return;
|
return;
|
||||||
PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock));
|
PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock));
|
||||||
|
if (sws.type == ZT_PHY_SOCKET_CLOSED)
|
||||||
|
return;
|
||||||
|
|
||||||
FD_CLR(sws.sock,&_readfds);
|
FD_CLR(sws.sock,&_readfds);
|
||||||
FD_CLR(sws.sock,&_writefds);
|
FD_CLR(sws.sock,&_writefds);
|
||||||
|
|||||||
Reference in New Issue
Block a user