]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - net_main.c
a rather hefty 6% speed gain by getting rid of the R_Mesh_UpdateFarClip function...
[xonotic/darkplaces.git] / net_main.c
index 4c6971d0599c72ba519e80583e8326ecbb7acefb..90e67f6c672d0b34e2c6d8d250c82f7a7112d3d0 100644 (file)
@@ -737,14 +737,12 @@ NET_Shutdown
 ====================
 */
 
-void           NET_Shutdown (void)
+void NET_Shutdown (void)
 {
-       qsocket_t       *sock;
-
        SetNetTime();
 
-       for (sock = net_activeSockets; sock; sock = sock->next)
-               NET_Close(sock);
+       while (net_activeSockets)
+               NET_Close(net_activeSockets);
 
 //
 // shutdown the drivers