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();
parent.target?.ffiModel.updateEventListener("");
await parent.target?.invokeMethod("init_service");
// ugly is here, because for desktop, below is useless
await bind.mainStartService();
updateClientState();
if (!Platform.isLinux) {
// current linux is not supported
if (Platform.isAndroid) {
Wakelock.enable();
}
}