commit f207c95c231a36c2ffdbcaee17e044b90dd8d164 (patch)
parent 732e0f2b234fc1483064e539180a2b5a56bb4d51
Author: Alex Karle <alex@karle.co>
Date: Thu, 23 Apr 2020 21:54:19 -0400
Euchre::Dealer: Fix game inactivity timeout value
30 hrs != 30 mins
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Euchre/Dealer.pm b/lib/Euchre/Dealer.pm
@@ -92,7 +92,7 @@ sub gloaters_never_win {
if (defined $game) {
# Player was in a game... if no one else is still there,
# we should clean up the game after some inactivity
- my $timeout = $ENV{DEBUG} ? 1 : (60 * 60 * 30); # 30 mins
+ my $timeout = $ENV{DEBUG} ? 1 : (60 * 30); # 30 mins
Mojo::IOLoop->timer($timeout => sub {
if (!grep { defined($_) && $_->{active} } @{$game->{players}}) {
print "Deleting inactive Game $game->{id}\n";