mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix response handling for unhandled method calls in flutter_window.cpp
This commit is contained in:
@@ -98,6 +98,7 @@ bool FlutterWindow::OnCreate() {
|
||||
else
|
||||
result->Success(flutter::EncodableValue("No Proxy"));
|
||||
delete(res);
|
||||
return;
|
||||
}
|
||||
#ifdef NDEBUG
|
||||
else if (call.method_name() == "heartBeat") {
|
||||
@@ -107,8 +108,10 @@ bool FlutterWindow::OnCreate() {
|
||||
}
|
||||
lastHeartbeat = std::chrono::steady_clock::now();
|
||||
result->Success();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
result->Success(); // Default response for unhandled method calls
|
||||
});
|
||||
|
||||
flutter::EventChannel<> channel2(
|
||||
|
Reference in New Issue
Block a user