Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index d10f3ae710576ff4fd5d22f7c942cc51fc789d99..3de4c29597c8148429f16abbd40ccc6adb65e37c 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -867,13 +867,12 @@ class _SocketStreamConsumer extends StreamConsumer<List<int>> { |
void done([error]) { |
if (streamCompleter != null) { |
- var tmp = streamCompleter; |
- streamCompleter = null; |
if (error != null) { |
- tmp.completeError(error); |
+ streamCompleter.completeError(error); |
} else { |
- tmp.complete(socket); |
+ streamCompleter.complete(socket); |
} |
+ streamCompleter = null; |
} |
} |