From bb0a200fc02a6ce16333d8b86c5aa0dc84e8732b Mon Sep 17 00:00:00 2001 From: Kano Date: Tue, 3 Sep 2013 22:10:52 +1000 Subject: [PATCH] miner.php mcast ignore duplicate replies --- miner.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/miner.php b/miner.php index fdb9e52f..f6924401 100644 --- a/miner.php +++ b/miner.php @@ -451,9 +451,12 @@ function getrigs() $mdes = ''; if (strlen($mdes) > 0) - $rigs[] = "$ip:$rp:$mdes"; + $rig = "$ip:$rp:$mdes"; else - $rigs[] = "$ip:$rp"; + $rig = "$ip:$rp"; + + if (!in_array($rig, $rigs)) + $rigs[] = $rig; } } if ((microtime(true) - $stt) >= $mcasttimeout)