Skip to content

Commit 6df34f7

Browse files
committed
Prevent crash app on re-register when there is an outstanding registration
1 parent e7f89f3 commit 6df34f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/registerer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export class Registerer {
678678
// For that, calculate the delay as a percentage of the expiration time
679679
this.registrationTimer = setTimeout(() => {
680680
this.registrationTimer = undefined;
681+
if (this.waiting) {
682+
this.logger.warn("Outstanding REGISTER request already in progress, skipping re-registration");
683+
return;
684+
}
681685
this.register();
682686
}, (this.refreshFrequency / 100) * expires * 1000);
683687

0 commit comments

Comments
 (0)