Skip to content

Commit

Permalink
Warn when calling start multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Loring committed Mar 15, 2016
1 parent 0817cc8 commit 6ced33e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ var publicAgent = {

start: function(projectConfig) {
if (this.isActive()) { // already started.
agent.logger.warn('Calling start on already started agent.' +
'New configuration will be ignored.');
return this;
}

Expand Down

0 comments on commit 6ced33e

Please sign in to comment.