Skip to content

Commit

Permalink
#2505 Fix not limited multiple listeners adding for NETWORK_INFO_EVEN…
Browse files Browse the repository at this point in the history
…T event in ResumableTask.
  • Loading branch information
Romick2005 committed Apr 16, 2024
1 parent 17c26cf commit e9d036e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/xmpp/ResumeTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export default class ResumeTask {
this._cancelResume();

this._resumeRetryN += 1;

if (this._networkOnlineListener) {
this._networkOnlineListener();
}
this._networkOnlineListener
= NetworkInfo.addCancellableListener(
NETWORK_INFO_EVENT,
Expand Down

0 comments on commit e9d036e

Please sign in to comment.