Fix 'reloadSources' service from Observatory (#11315)

Fixes https://github.com/flutter/flutter/issues/11314
This commit is contained in:
Carlo Bernaschina
2017-07-19 18:37:54 -07:00
committed by GitHub
parent 194bf41ee8
commit e890ec5bb6

View File

@@ -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',