From e526936ce3897b5bd9814c7dbb761fa54c7a555b Mon Sep 17 00:00:00 2001 From: Olov Danielson Date: Fri, 4 Dec 2009 16:11:00 +0000 Subject: [PATCH] fixed bug. When only partial answer were received, the queue delete functionality didn't work --- ykval-synclib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ykval-synclib.php b/ykval-synclib.php index 9345013..dbee17e 100644 --- a/ykval-synclib.php +++ b/ykval-synclib.php @@ -340,14 +340,16 @@ class SyncLib curl_multi_select ($mh); } } while($active); + foreach ($ch as $h) { curl_multi_remove_handle ($mh, $h); curl_close ($h); } curl_multi_close ($mh); - - return $str; + + if ($ans_count>0) return $ans_arr; + else return $str; } }