mirror of
https://github.com/danog/dns.git
synced 2024-11-26 20:14:51 +01:00
Fix up previous commit for concurrent config loading
This commit is contained in:
parent
474787af05
commit
a5ccdd9a08
@ -288,6 +288,8 @@ final class BasicResolver implements Resolver {
|
||||
$this->config = yield $this->configLoader->loadConfig();
|
||||
});
|
||||
|
||||
$this->pendingConfig = $promise;
|
||||
|
||||
$promise->onResolve(function () {
|
||||
$this->pendingConfig = null;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user