From c95a07d2c4d2784dfdb02364b5d6900d5f2add95 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Oct 2019 01:10:37 +0200 Subject: [PATCH] - missed one exit. --- src/d_net.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/d_net.cpp b/src/d_net.cpp index ba4234cbe8..998ecb2701 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -1541,7 +1541,7 @@ bool DoArbitrate (void *userdata) return false; } -void D_ArbitrateNetStart (void) +bool D_ArbitrateNetStart (void) { ArbitrateData data; int i; @@ -1604,7 +1604,7 @@ void D_ArbitrateNetStart (void) StartScreen->NetInit ("Exchanging game information", 1); if (!StartScreen->NetLoop (DoArbitrate, &data)) { - exit(0); + return false; } if (consoleplayer == Net_Arbitrator) @@ -1621,6 +1621,7 @@ void D_ArbitrateNetStart (void) } } StartScreen->NetDone(); + return true; } static void SendSetup (uint32_t playersdetected[MAXNETNODES], uint8_t gotsetup[MAXNETNODES], int len) @@ -1726,7 +1727,7 @@ bool D_CheckNetGame (void) if (netgame) { GameConfig->ReadNetVars (); // [RH] Read network ServerInfo cvars - D_ArbitrateNetStart (); + if (!D_ArbitrateNetStart ()) return false; } // read values out of doomcom