Skip to content

Commit a2f1ddf

Browse files
committed
NET_Shutdown: fix bogus early return
1 parent 597dbab commit a2f1ddf

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/engine/qcommon/net_ip.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,16 +1809,14 @@ NET_Shutdown
18091809
*/
18101810
void NET_Shutdown()
18111811
{
1812-
if ( !networkingEnabled )
1813-
{
1814-
return;
1815-
}
1816-
18171812
NET_DisableNetworking();
18181813

18191814
#ifdef _WIN32
1820-
WSACleanup();
1821-
winsockInitialized = false;
1815+
if ( winsockInitialized )
1816+
{
1817+
WSACleanup();
1818+
winsockInitialized = false;
1819+
}
18221820
#endif
18231821
}
18241822

0 commit comments

Comments
 (0)