Skip to content

Commit

Permalink
fixed #34
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Jul 26, 2017
1 parent d72c50c commit ce0ac57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,14 @@ Server.prototype.create = function(settings) {
method: 'PUT',
path: 'server/'+params.serverId+'/power'
});
clearInterval(timer);
request.send(function(err, result) {
if (err) reject(err)
if (err) {
reject(err)
}
console.log('Start server: '+params.serverId+' for '+settings.name+'.');
resolve();
});
clearInterval(timer);
} else {
clearInterval(timer);
reject(err);
Expand Down

0 comments on commit ce0ac57

Please sign in to comment.