mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
feat: add member cache; handle all role changes with RoleManagerPlugin; exit gracefully
This commit is contained in:
parent
fd60a09947
commit
fa50110766
48 changed files with 755 additions and 264 deletions
10
backend/src/threadsSignalFix.ts
Normal file
10
backend/src/threadsSignalFix.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* Hack for wiping out the threads signal handlers
|
||||
* See: https://github.com/andywer/threads.js/issues/388
|
||||
* Make sure:
|
||||
* - This is imported before any real imports from "threads"
|
||||
* - This is imported as early as possible to avoid removing our own signal handlers
|
||||
*/
|
||||
import "threads";
|
||||
process.removeAllListeners("SIGINT");
|
||||
process.removeAllListeners("SIGTERM");
|
Loading…
Add table
Add a link
Reference in a new issue