assume bg is ready if messaging succeeded

This commit is contained in:
tophf 2022-08-02 13:25:23 +03:00
parent 7a1045b45a
commit 6ff5f17140

View File

@ -161,8 +161,10 @@
return Promise.reject(e);
}
await bgReadying;
bgReadying = bgReadySignal = null;
return msg.send(m);
} finally {
// Assuming bg is ready if messaging succeeded
bgReadying = bgReadySignal = null;
}
}