mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Allow double-close just in case in Phy<>
This commit is contained in:
parent
17ca5be4c1
commit
00aa115898
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue