Permalink
Browse files

Actually ignore multiple shut_down_in commands.

  • Loading branch information...
1 parent 52cc46d commit ee558d616abc718f9be5d76f0b4e33d649fb78aa @bmcdorman bmcdorman committed Mar 9, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/botball_c.cpp
View
1 src/botball_c.cpp
@@ -44,6 +44,7 @@ void shut_down_in(double s)
static ShutDownIn *s_instance;
if(s_instance) {
std::cout << "Warning: shut_down_in already called once. Ignoring." << std::endl;
+ return;
}
s_instance = new ShutDownIn(s);
s_instance->start();

0 comments on commit ee558d6

Please sign in to comment.