Index: pkg/analysis_server/lib/src/channel/byte_stream_channel.dart |
diff --git a/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart b/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart |
index 44d917e8d60dae422a5c6a337c162ffaf15b1e4b..ce6235d01bfb3f5716b4266c96ebd0b88834002e 100644 |
--- a/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart |
+++ b/pkg/analysis_server/lib/src/channel/byte_stream_channel.dart |
@@ -8,9 +8,9 @@ import 'dart:async'; |
import 'dart:convert'; |
import 'dart:io'; |
+import 'package:analysis_server/plugin/protocol/protocol.dart'; |
import 'package:analysis_server/src/analysis_server.dart'; |
import 'package:analysis_server/src/channel/channel.dart'; |
-import 'package:analysis_server/src/protocol.dart'; |
import 'package:analyzer/instrumentation/instrumentation.dart'; |
/** |
@@ -105,11 +105,9 @@ class ByteStreamServerChannel implements ServerCommunicationChannel { |
@override |
void listen(void onRequest(Request request), |
{Function onError, void onDone()}) { |
- _input |
- .transform(const Utf8Decoder()) |
- .transform(new LineSplitter()) |
- .listen((String data) => _readRequest(data, onRequest), |
- onError: onError, onDone: () { |
+ _input.transform(const Utf8Decoder()).transform(new LineSplitter()).listen( |
+ (String data) => _readRequest(data, onRequest), |
+ onError: onError, onDone: () { |
close(); |
onDone(); |
}); |