Only dispatch_async on limelight-common's threads

This commit is contained in:
Cameron Gutman
2015-01-09 16:58:18 -05:00
parent 600560d9e3
commit 61401b3e7b
5 changed files with 20 additions and 2 deletions

View File

@@ -79,11 +79,20 @@
[opQueue addOperation:_connection];
}
// This should NEVER be called from within a thread
// owned by limelight-common
- (void) stopStream
{
[_connection terminate];
}
// This should only be called from within a thread
// owned by limelight-common
- (void) stopStreamInternal
{
[_connection terminateInternal];
}
- (BOOL) launchApp:(HttpManager*)hMan {
NSData* launchResp = [hMan executeRequestSynchronously:
[hMan newLaunchRequest:_config.appID