File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " discord-hybrid-sharding" ,
3
- "version" : " 1.7.3 " ,
3
+ "version" : " 1.7.4 " ,
4
4
"description" : " The first package which combines sharding manager & internal sharding to save a lot of resources, which allows clustering!" ,
5
5
"main" : " index.js" ,
6
6
"types" : " ./typings.d.ts" ,
Original file line number Diff line number Diff line change @@ -275,15 +275,15 @@ class Cluster extends EventEmitter {
275
275
* @event Cluster#death
276
276
* @param {Child|Worker } process Child process/worker that exited
277
277
*/
278
- if ( options . reason !== 'reclustering' ) this . emit ( 'death' , this . thread . process ) ;
278
+ if ( options ? .reason !== 'reclustering' ) this . emit ( 'death' , this . thread . process ) ;
279
279
if ( respawn ) {
280
280
this . manager . _debug (
281
281
'[DEATH] Cluster died, attempting respawn | Restarts Left: ' +
282
282
( this . restarts . max - this . restarts . current ) ,
283
283
this . id ,
284
284
) ;
285
285
} else {
286
- this . manager . _debug ( '[KILL] Cluster killed with reason: ' + ( options . reason || 'not given' ) , this . id ) ;
286
+ this . manager . _debug ( '[KILL] Cluster killed with reason: ' + ( options ? .reason || 'not given' ) , this . id ) ;
287
287
}
288
288
289
289
this . ready = false ;
You can’t perform that action at this time.
0 commit comments