summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraksnapshot-applet4
1 files changed, 3 insertions, 1 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 6bbd849..d7050b0 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -52,6 +52,8 @@ my $localfile = "$ENV{HOME}/.draksnapshot";
my $insensitive_while_running_a_child;
+my $timeout = ($::testing ? 1 : 30) * 1000;
+
my %state = (
okay => {
@@ -123,7 +125,7 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('okay');
gtkflush();
-Glib::Timeout->add(($::testing ? 1 : 30) * 1000, sub { firstCheck(); 0 });
+Glib::Timeout->add($timeout, sub { firstCheck(); 0 });
$SIG{USR1} = 'IGNORE';