From 5c392444787ea440b44544c39246fd38acecaeb3 Mon Sep 17 00:00:00 2001 From: Arionum Date: Tue, 9 Jan 2018 12:47:20 +0200 Subject: [PATCH] sanity lock --- sanity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanity.php b/sanity.php index 532eddd..1040251 100755 --- a/sanity.php +++ b/sanity.php @@ -137,7 +137,7 @@ if($total_peers==0){ echo "No peers found. Attempting to get peers from arionum.com\n"; $f=file("https://www.arionum.com/peers.txt"); shuffle($f); - if(count($f)<2) die("Could nto connect to arionum.com! Will try later!\n"); + if(count($f)<2){ @unlink("tmp/sanity-lock") die("Could nto connect to arionum.com! Will try later!\n"); } foreach($f as $peer){ $peer=trim($peer); $peer = filter_var($peer, FILTER_SANITIZE_URL);