Skip to content

Commit

Permalink
Monolithic server removes all listeners on process, when stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
DougReeder committed Feb 29, 2024
1 parent a19e5c4 commit d0f0baa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/armadietto.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ class Armadietto {
if ((await this._server)._http) (await this._server)._http.close();
if ((await this._server)._https) (await this._server)._https.close();
getLogger().notice('No longer accepting remoteStorage connections');
process.removeAllListeners('SIGINT');
process.removeAllListeners('SIGTERM');
process.removeAllListeners('uncaughtExceptionMonitor');
process.removeAllListeners('warning');
process.removeAllListeners('multipleResolves');

// TODO: remove all file locks
}
Expand Down

0 comments on commit d0f0baa

Please sign in to comment.