1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00

Disable instead of unreference

This commit is contained in:
Aaron Piotrowski 2016-12-29 22:57:41 -06:00
parent 7091105e2f
commit 5c5c0f92bd

View File

@ -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;