Skip to content

Commit

Permalink
spiceio: fix crash on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Feb 26, 2024
1 parent 8a7a531 commit 0b7110e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Services/UTMSpiceIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ - (void)spiceInputUnavailable:(CSConnection *)connection input:(CSInput *)input
- (void)spiceDisconnected:(CSConnection *)connection {
NSAssert(connection == self.spiceConnection, @"Unknown connection");
self.isConnected = NO;
[self.delegate spiceDidDisconnect];
if ([self.delegate respondsToSelector:@selector(spiceDidDisconnect)]) {
[self.delegate spiceDidDisconnect];
}
}

- (void)spiceError:(CSConnection *)connection code:(CSConnectionError)code message:(nullable NSString *)message {
Expand Down

0 comments on commit 0b7110e

Please sign in to comment.