mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Add heartbeat monitoring in release builds.
This commit is contained in:
@@ -99,13 +99,16 @@ bool FlutterWindow::OnCreate() {
|
||||
result->Success(flutter::EncodableValue("No Proxy"));
|
||||
delete(res);
|
||||
}
|
||||
#ifdef NDEBUG
|
||||
else if (call.method_name() == "heartBeat") {
|
||||
|
||||
if (monitorThread == nullptr) {
|
||||
monitorThread = new std::thread{ monitorUIThread };
|
||||
}
|
||||
lastHeartbeat = std::chrono::steady_clock::now();
|
||||
result->Success();
|
||||
}
|
||||
#endif
|
||||
});
|
||||
|
||||
flutter::EventChannel<> channel2(
|
||||
|
Reference in New Issue
Block a user