| Index: runtime/bin/socket_impl.dart
|
| diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart
|
| index a4822d09d957c616a58af9fa8c3848d5ad3da0ea..c1dc1162e486aad53bde4030e9ebc3818e2c5812 100644
|
| --- a/runtime/bin/socket_impl.dart
|
| +++ b/runtime/bin/socket_impl.dart
|
| @@ -97,6 +97,13 @@ class _SocketBase {
|
|
|
| void _activateHandlers() {
|
| if (_canActivateHandlers && (_id >= 0)) {
|
| + if (_handlerMask == 0) {
|
| + if (_handler != null) {
|
| + _handler.close();
|
| + _handler = null;
|
| + }
|
| + return;
|
| + }
|
| int data = _handlerMask;
|
| if (_isListenSocket()) {
|
| data |= (1 << _LISTENING_SOCKET);
|
|
|