mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Cancel download no longer crashes the app.
This commit is contained in:
1 parent
04b1514452
commit
aebb767cfb
1 file changed
+2
-2
@@ -94,7 +94,6 @@
|
||||
|
||||
- (void)cancel {
|
||||
xpc_connection_cancel(connection);
|
||||
xpc_release(connection);
|
||||
}
|
||||
|
||||
- (xpc_connection_t)getSandboxXPCService {
|
||||
@@ -123,7 +122,8 @@
|
||||
// xpc_connection_create() is incorrect or we (this process) have
|
||||
// canceled the service; we can do any cleanup of appliation
|
||||
// state at this point.
|
||||
xpc_release(connection);
|
||||
xpc_connection_cancel(delegateConnection);
|
||||
xpc_release(delegateConnection);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user