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();