Fix 'reloadSources' service from Observatory (#11315)
Fixes https://github.com/flutter/flutter/issues/11314
This commit is contained in:
committed by
GitHub
parent
194bf41ee8
commit
e890ec5bb6
@@ -89,7 +89,7 @@ class HotRunner extends ResidentRunner {
|
||||
{ bool force: false, bool pause: false }) async {
|
||||
// TODO(cbernaschina): check that isolateId is the id of the UI isolate.
|
||||
final OperationResult result = await restart(pauseAfterRestart: pause);
|
||||
if (result != OperationResult.ok) {
|
||||
if (!result.isOk) {
|
||||
throw new rpc.RpcException(
|
||||
rpc_error_code.INTERNAL_ERROR,
|
||||
'Unable to reload sources',
|
||||
|
||||
Reference in New Issue
Block a user