mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: try to fix worker crash
This commit is contained in:
@@ -12,6 +12,7 @@ const handleMessage = async (e: MessageEvent<'build' | 'exit'>) => {
|
||||
} else if (e.data === 'exit') {
|
||||
self.removeEventListener('message', handleMessage);
|
||||
self.unref();
|
||||
self.terminate();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user