mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-15 23:20:02 -04:00
fix ready behavior
This commit is contained in:
parent
a5b462f696
commit
1cc513560e
7 changed files with 33 additions and 15 deletions
|
@ -340,7 +340,7 @@ export class BareClient {
|
|||
let switcher = findSwitcher();
|
||||
if (!switcher.active) throw "there are no bare clients";
|
||||
const client = switcher.active;
|
||||
if (!client.ready) await client.init();
|
||||
if (!client.ready) await (client as any).initpromise;
|
||||
|
||||
for (let i = 0; ; i++) {
|
||||
if ('host' in headers) headers.host = urlO.host;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue