Lock around LiStartConnection() and LiStopConnection() to fix thread-safety issues. This will hopefully address the crashes seen in 1.0.3 and 1.0.4.

This commit is contained in:
Cameron Gutman 2016-04-12 00:50:59 -04:00
commit 1783abec13
5 changed files with 18 additions and 24 deletions

View file

@ -84,7 +84,7 @@
[self presentViewController:conTermAlert animated:YES completion:nil];
});
[_streamMan stopStreamInternal];
[_streamMan stopStream];
}
- (void) stageStarting:(char*)stageName {
@ -115,7 +115,7 @@
[self presentViewController:alert animated:YES completion:nil];
});
[_streamMan stopStreamInternal];
[_streamMan stopStream];
}
- (void) launchFailed:(NSString*)message {