File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -179,11 +179,13 @@ export default class MongoInstance extends EventEmitter {
179179
180180 if ( ! isNullOrUndefined ( this . childProcess ) ) {
181181 await killProcess ( this . childProcess , 'childProcess' ) ;
182+ this . childProcess = undefined ; // reset reference to the childProcess for "mongod"
182183 } else {
183184 this . debug ( '- childProcess: nothing to shutdown, skipping.' ) ;
184185 }
185186 if ( ! isNullOrUndefined ( this . killerProcess ) ) {
186187 await killProcess ( this . killerProcess , 'killerProcess' ) ;
188+ this . killerProcess = undefined ; // reset reference to the childProcess for "mongo_killer"
187189 } else {
188190 this . debug ( '- killerProcess: nothing to shutdown, skipping.' ) ;
189191 }
You can’t perform that action at this time.
0 commit comments