Fix missing await in periodic NAT hole punching

pull/317/head
sachaaaaa 6 years ago
parent b6dc8b8a7e
commit 6a06e05452

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

Loading…
Cancel
Save