mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Fix missing await in periodic NAT hole punching
This commit is contained in:
parent
b6dc8b8a7e
commit
6a06e05452
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue