Detach the keepalive child thread, no need to wait for it
authorSteve McIntyre <steve@einval.com>
Fri, 24 Feb 2017 14:43:24 +0000 (14:43 +0000)
committerSteve McIntyre <steve@einval.com>
Fri, 24 Feb 2017 14:43:24 +0000 (14:43 +0000)
find_file.cgi

index 11089a9..7f1f908 100755 (executable)
@@ -387,7 +387,7 @@ foreach my $area (@chosen_areas) {
 }
 
 # Kill the keepalive thread
-$thr->kill('KILL')->join();
+$thr->kill('KILL')->detach();
 
 my $end_time = time();
 my $time_taken = $end_time - $start_time;