We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597dbab commit a2f1ddfCopy full SHA for a2f1ddf
src/engine/qcommon/net_ip.cpp
@@ -1809,16 +1809,14 @@ NET_Shutdown
1809
*/
1810
void NET_Shutdown()
1811
{
1812
- if ( !networkingEnabled )
1813
- {
1814
- return;
1815
- }
1816
-
1817
NET_DisableNetworking();
1818
1819
#ifdef _WIN32
1820
- WSACleanup();
1821
- winsockInitialized = false;
+ if ( winsockInitialized )
+ {
+ WSACleanup();
+ winsockInitialized = false;
+ }
1822
#endif
1823
}
1824
0 commit comments