This commit is contained in:
rustdesk 2023-01-26 11:05:23 +08:00
parent e124cfb8cd
commit 917b3d2213

View File

@ -323,10 +323,10 @@ class ServerModel with ChangeNotifier {
notifyListeners(); notifyListeners();
parent.target?.ffiModel.updateEventListener(""); parent.target?.ffiModel.updateEventListener("");
await parent.target?.invokeMethod("init_service"); await parent.target?.invokeMethod("init_service");
// ugly is here, because for desktop, below is useless
await bind.mainStartService(); await bind.mainStartService();
updateClientState(); updateClientState();
if (!Platform.isLinux) { if (Platform.isAndroid) {
// current linux is not supported
Wakelock.enable(); Wakelock.enable();
} }
} }