Skip to content

Commit

Permalink
Fix case child.pid is null #14
Browse files Browse the repository at this point in the history
app.child might be an empty object.
If so, I will add more patch.
  • Loading branch information
narirou committed May 4, 2015
1 parent 3ac83a4 commit 4a9a6ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ app.kill = function( signal, callback ) {

// send kill signal
if( app.child ) {
var pid = gutil.colors.magenta( app.child.pid );

var stopped = function() {
var pid = gutil.colors.magenta( app.child.pid );
app.child = null;
done( null, 'Development server was stopped. (PID:' + pid + ')', callback );
};
Expand Down

0 comments on commit 4a9a6ed

Please sign in to comment.