mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-22 16:26:59 +00:00
Only dispatch_async on limelight-common's threads
This commit is contained in:
@@ -275,7 +275,7 @@ void ClDisplayTransientMessage(char* message)
|
||||
[_callbacks displayTransientMessage: message];
|
||||
}
|
||||
|
||||
-(void) terminate
|
||||
-(void) terminateInternal
|
||||
{
|
||||
// We dispatch this async to get out because this can be invoked
|
||||
// on a thread inside common and we don't want to deadlock
|
||||
@@ -285,6 +285,13 @@ void ClDisplayTransientMessage(char* message)
|
||||
});
|
||||
}
|
||||
|
||||
-(void) terminate
|
||||
{
|
||||
// We're guaranteed to not be on a limelight-common thread
|
||||
// here so it's safe to call stop directly
|
||||
LiStopConnection();
|
||||
}
|
||||
|
||||
-(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer*)myRenderer connectionCallbacks:(id<ConnectionCallbacks>)callbacks
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
Reference in New Issue
Block a user