We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c784d commit 1eaa5f4Copy full SHA for 1eaa5f4
lib/Local.js
@@ -259,13 +259,17 @@ function Local(){
259
var killChecker = setInterval(() => {
260
if(childPids.length === 0) {
261
clearInterval(killChecker);
262
- process.kill(this.pid);
263
-
264
- // This gives time to local binary to send kill signal to railsApp.
265
- setTimeout(() => {
+ try {
+ process.kill(this.pid);
+ // This gives time to local binary to send kill signal to railsApp.
+ setTimeout(() => {
266
+ this.isProcessRunning = false;
267
+ callback();
268
+ }, 2000);
269
+ } catch(err) {
270
this.isProcessRunning = false;
271
callback();
- }, 2000);
272
+ }
273
}
274
for(var i in childPids) {
275
try {
@@ -274,7 +278,7 @@ function Local(){
278
childPids.splice(i, 1);
279
276
280
277
- },100);
281
+ },500);
282
});
283
};
284
0 commit comments