From 5c5c0f92bdf97aa9ae26b630a7e478a8852ba143 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 29 Dec 2016 22:57:41 -0600 Subject: [PATCH] Disable instead of unreference --- lib/DefaultResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;