Quellcode durchsuchen

Allow double-close just in case in Phy<>

Adam Ierymenko vor 10 Jahren
Ursprung
Commit
00aa115898
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      osdep/Phy.hpp

+ 2 - 0
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);