mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Prevent exception with isolate failed to start
R=scheglov@google.com Review-Url: https://codereview.chromium.org/2986123002 .
This commit is contained in:
parent
472bf54d96
commit
adb482002b
1 changed files with 6 additions and 4 deletions
|
@ -280,10 +280,12 @@ abstract class ServerIsolateChannel implements ServerCommunicationChannel {
|
|||
|
||||
@override
|
||||
void sendRequest(Request request) {
|
||||
Map<String, Object> json = request.toJson();
|
||||
String encodedRequest = JSON.encode(json);
|
||||
instrumentationService.logPluginRequest(pluginId, encodedRequest);
|
||||
_sendPort.send(json);
|
||||
if (_sendPort != null) {
|
||||
Map<String, Object> json = request.toJson();
|
||||
String encodedRequest = JSON.encode(json);
|
||||
instrumentationService.logPluginRequest(pluginId, encodedRequest);
|
||||
_sendPort.send(json);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue