From 8671e4e7ae3b8f6b060340e495cefd6161e493a8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 9 Jan 2015 19:20:34 -0500 Subject: [PATCH] Disable connection termination callbacks when LiStopConnection is called --- limelight-common/Connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/limelight-common/Connection.c b/limelight-common/Connection.c index a602c43..6ce783f 100644 --- a/limelight-common/Connection.c +++ b/limelight-common/Connection.c @@ -32,6 +32,9 @@ const char* LiGetStageName(int stage) { /* Stop the connection by undoing the step at the current stage and those before it */ void LiStopConnection(void) { + // Disable termination callbacks now + alreadyTerminated = 1; + if (stage == STAGE_INPUT_STREAM_START) { Limelog("Stopping input stream..."); stopInputStream();