Skip to content

Commit

Permalink
Move timeout log message so it always happens.
Browse files Browse the repository at this point in the history
Bambot is sleeping indefinitely (over 3 days this time) when he should
be maxed out at 5 minutes. Hopefully better logs will reveal the bug.
  • Loading branch information
bambams committed Jul 27, 2015
1 parent 822a9c9 commit eba9720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Bambot.pm
Expand Up @@ -1285,8 +1285,6 @@ MAIN:
if(defined $next_reminder && $next_reminder->when > $now) {
$timeout = $next_reminder->when
->subtract_datetime_absolute($now)->seconds() + 1;
$self->log("Sleeping for $timeout seconds...", verbose=>1);
}
# h4x: Automatically varify the health of IRC connection every 5
Expand All @@ -1297,6 +1295,8 @@ MAIN:
$timeout = $select_timeout;
}
$self->log("Sleeping for $timeout seconds...", verbose=>1);
my @handles = $selector->can_read($timeout);
$self->log("I awake from my slumber to do my chores.",
Expand Down

0 comments on commit eba9720

Please sign in to comment.