call _ffiBind.mainStartPa only for --cm

This commit is contained in:
rustdesk 2024-06-16 23:50:39 +08:00
parent e2a6d66805
commit 2e0eaed322

View File

@ -134,7 +134,9 @@ class PlatformFFI {
if (isLinux) {
// Start a dbus service, no need to await
_ffiBind.mainStartDbusServer();
_ffiBind.mainStartPa();
if (appType == kAppTypeConnectionManager) {
_ffiBind.mainStartPa();
}
} else if (isMacOS && isMain) {
// Start ipc service for uri links.
_ffiBind.mainStartIpcUrlServer();