Skip to content

Commit

Permalink
Fix up previous commit for concurrent config loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 13, 2017
1 parent 474787a commit a5ccdd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/BasicResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public function reloadConfig(): Promise {
$this->config = yield $this->configLoader->loadConfig();
});

$this->pendingConfig = $promise;

$promise->onResolve(function () {
$this->pendingConfig = null;
});
Expand Down

0 comments on commit a5ccdd9

Please sign in to comment.