Skip to content

Commit

Permalink
Don't just check for dboff; ping too
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Apr 6, 2004
1 parent 59d5a1d commit 1ef56f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/slashd
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ sub update_static {
if (!$last_static_update
or $my_time > $last_static_update + 30) {
my $old_panic = $constants->{panic} || 0;
sleep 5 until dbAvailable();
sleep 5 until dbAvailable() && $slashdb->{_dbh}->ping;
createCurrentStatic($slashdb->getSlashConf());
$constants = getCurrentStatic();
$last_static_update = $my_time;
Expand Down

0 comments on commit 1ef56f6

Please sign in to comment.