Browse Source

start serviceListener

works_for_me
Volker Birk 2 years ago
parent
commit
9166856113
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      pEpMacOSAdapter/main.m

+ 1
- 2
pEpMacOSAdapter/main.m View File

@ -46,9 +46,8 @@ int main(int argc, const char *argv[])
ServiceDelegate *delegate = [ServiceDelegate new];
// Set up the one NSXPCListener for this service. It will handle all incoming connections.
NSXPCListener *listener = [[NSXPCListener alloc] initWithMachServiceName:@"foundation.pEp.adapter.macOS"];
NSXPCListener *listener = [NSXPCListener serviceListener];
[listener resume];
[[NSRunLoop currentRunLoop] run];
return 0;
}

Loading…
Cancel
Save