From c322ed9437b8fa7640f46a65d81d5b9200b02f45 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 23 Jul 2019 23:41:48 -0400 Subject: [PATCH] Terminate with the given error code if the disconnect timeout expires instead of -1 --- src/ControlStream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ControlStream.c b/src/ControlStream.c index c379cc0..55f4688 100644 --- a/src/ControlStream.c +++ b/src/ControlStream.c @@ -501,7 +501,7 @@ static void controlReceiveThreadFunc(void* context) { // assume the server died tragically, so go ahead and tear down. PltUnlockMutex(&enetMutex); Limelog("Disconnect event timeout expired\n"); - ListenerCallbacks.connectionTerminated(-1); + ListenerCallbacks.connectionTerminated(terminationErrorCode); return; } }