mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Properly implement listener should accept connection in ClientCommunicationService
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
026f082253
commit
ac43369bed
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@ class ClientCommunicationService: NSObject, NSFileProviderServiceSource, NSXPCLi
|
|||
func listener(_ listener: NSXPCListener,
|
||||
shouldAcceptNewConnection newConnection: NSXPCConnection)
|
||||
-> Bool {
|
||||
let clientCommProtocol = ClientCommunicationProtocol.self
|
||||
let clientCommInterface = NSXPCInterface(with: clientCommProtocol)
|
||||
newConnection.exportedInterface = clientCommInterface
|
||||
newConnection.exportedObject = self
|
||||
newConnection.resume()
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue