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:
parent
7091105e2f
commit
5c5c0f92bd
@ -460,7 +460,7 @@ class DefaultResolver implements Resolver {
|
|||||||
$server->length = INF;
|
$server->length = INF;
|
||||||
$server->pendingRequests = [];
|
$server->pendingRequests = [];
|
||||||
$server->watcherId = Loop::onReadable($socket, $this->callableFromInstanceMethod("onReadable"));
|
$server->watcherId = Loop::onReadable($socket, $this->callableFromInstanceMethod("onReadable"));
|
||||||
Loop::unreference($server->watcherId);
|
Loop::disable($server->watcherId);
|
||||||
$this->serverIdMap[$id] = $server;
|
$this->serverIdMap[$id] = $server;
|
||||||
$this->serverUriMap[$uri] = $server;
|
$this->serverUriMap[$uri] = $server;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user