private async tryReinitWatcherMutableResources()

in src/bll/notifications/NewNotificationWatcher.ts [57:73]


    private async tryReinitWatcherMutableResources() {
        while (!this.shouldBeDisposed) {
            try {
                await this.reinitWatcherMutableResources();
                break;
            } catch (err) {
                if (!err) {
                    Logger.logError(`NotificationWatcherImpl#tryReinitWatcherMutableResources: ` +
                        `NotificationWatcher failed with empty error: ` + new Error().stack);
                } else {
                    err = (err.code === ("ENOENT" || "ENOTFOUND")) ? MessageConstants.URL_NOT_REACHABLE : err;
                    Logger.logError(`NotificationWatcher failed with ${Utils.formatErrorMessage(err)}`);
                }
                await Utils.sleep(5000);
            }
        }
    }