mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 21:48:23 -05:00
Fix crash in dexsearch
This commit is contained in:
parent
e87fd32550
commit
044f4f84e9
|
|
@ -153,6 +153,14 @@ if (!process.send) {
|
|||
} else {
|
||||
// This is the child
|
||||
|
||||
global.Config = require('../config/config.js');
|
||||
|
||||
if (Config.crashguard) {
|
||||
process.on('uncaughtException', err => {
|
||||
require('./crashlogger.js')(err, 'A dexsearch process', true);
|
||||
});
|
||||
}
|
||||
|
||||
global.Tools = require('../tools.js');
|
||||
global.toId = Tools.getId;
|
||||
Tools.includeData();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user