mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
restore await on on promise contracts
This commit is contained in:
parent
c13d07daf3
commit
c5f2fe516b
1 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ export class PluginsSystem {
|
|||
errorMessage: `Setup lifecycle of "${pluginName}" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.`,
|
||||
});
|
||||
} else {
|
||||
contract = contractOrPromise;
|
||||
// awaiting non-promise contract to get back in the event queue
|
||||
contract = await contractOrPromise;
|
||||
}
|
||||
|
||||
contracts.set(pluginName, contract);
|
||||
|
@ -160,7 +161,8 @@ export class PluginsSystem {
|
|||
errorMessage: `Start lifecycle of "${pluginName}" plugin wasn't completed in 30sec. Consider disabling the plugin and re-start.`,
|
||||
});
|
||||
} else {
|
||||
contract = contractOrPromise;
|
||||
// awaiting non-promise contract to get back in the event queue
|
||||
contract = await contractOrPromise;
|
||||
}
|
||||
|
||||
contracts.set(pluginName, contract);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue