]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
Make connections atomic. Disconnect before trying to connect.
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 May 2020 15:22:06 +0000 (15:22 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 May 2020 15:22:06 +0000 (15:22 +0000)
commitf9d7e79153535d266416bdc2cfb286aa276f6f18
tree512ae54d96ac0a38403f78a8898422b4ca24541c
parent621bfbef71c6a151a6191ddbc0fabd0629e830ac
Make connections atomic. Disconnect before trying to connect.

Fixes an issue where a demo freezes in place if you try to connect while one is
running. This also has the side effect of eliminating a duplicate call to
CL_StopPlayback, which is called by both CL_EstablishConnection and
CL_Disconnect (which is itself called by NetConn_ConnectionEstablished).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12544 d7cf8633-e32d-0410-b094-e92efae38249
cl_main.c
netconn.c