We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02cf14 commit bc20b61Copy full SHA for bc20b61
lib/Local.js
@@ -260,13 +260,17 @@ function Local(){
260
if(childPids.length === 0) {
261
clearInterval(killChecker);
262
process.kill(this.pid);
263
- this.isProcessRunning = false;
264
- callback();
+
+ // This gives time to local binary to send kill signal to railsApp.
265
+ setTimeout(() => {
266
+ this.isProcessRunning = false;
267
+ callback();
268
+ }, 2000);
269
}
270
for(var i in childPids) {
- try{
271
+ try {
272
process.kill(childPids[i]);
- }catch(err){
273
+ } catch(err) {
274
childPids.splice(i, 1);
275
276
0 commit comments