]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Keep sockets opened after first disconnect
authorkiwixz <kiwixz@outlook.com>
Mon, 23 Jan 2023 21:01:37 +0000 (22:01 +0100)
committerkiwixz <kiwixz@outlook.com>
Mon, 23 Jan 2023 21:03:24 +0000 (22:03 +0100)
Signed-off-by: kiwixz <kiwixz@outlook.com>
cl_main.c

index dd2ea6a5911a2d1aca0935e44efe742cfba1f5df..a403f3e6ba377a081bdb91a359a715834c830c03 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -3140,7 +3140,7 @@ void CL_Init (void)
 
                CL_Video_Init();
 
-               NetConn_UpdateSockets_Client();
+               Cvar_Callback(&cl_netport);
 
                host.hook.ConnectLocal = CL_EstablishConnection_Local;
                host.hook.Disconnect = CL_DisconnectEx;