Fix missing await in periodic NAT hole punching

This commit is contained in:
sachaaaaa 2019-07-02 09:18:08 +10:00
parent b6dc8b8a7e
commit 6a06e05452

View file

@ -153,9 +153,9 @@ class LocalLokiServer extends EventEmitter {
// eslint-disable-next-line no-await-in-loop
await p;
this.publicPort = publicPort;
this.timerHandler = setTimeout(() => {
this.timerHandler = setTimeout(async () => {
try {
this.publicPort = this.punchHole();
this.publicPort = await this.punchHole();
} catch (e) {
this.close();
}