1
0
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:
Niklas Keller 2017-07-13 21:17:16 +02:00
parent 474787af05
commit a5ccdd9a08

View File

@ -288,6 +288,8 @@ final class BasicResolver implements Resolver {
$this->config = yield $this->configLoader->loadConfig();
});
$this->pendingConfig = $promise;
$promise->onResolve(function () {
$this->pendingConfig = null;
});