Disable connection termination callbacks when LiStopConnection is called

This commit is contained in:
Cameron Gutman 2015-01-09 19:20:34 -05:00
parent 551834a021
commit 8671e4e7ae

View File

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