diff --git a/lib/DefaultResolver.php b/lib/DefaultResolver.php index f6a978f..fdc656a 100644 --- a/lib/DefaultResolver.php +++ b/lib/DefaultResolver.php @@ -460,7 +460,7 @@ class DefaultResolver implements Resolver { $server->length = INF; $server->pendingRequests = []; $server->watcherId = Loop::onReadable($socket, $this->callableFromInstanceMethod("onReadable")); - Loop::unreference($server->watcherId); + Loop::disable($server->watcherId); $this->serverIdMap[$id] = $server; $this->serverUriMap[$uri] = $server;