]> git.mxchange.org Git - friendica.git/blobdiff - include/lock.php
Opps, this has vanished by accident, thanks to @annando
[friendica.git] / include / lock.php
index 433363e4f113d9a220707d1874b44765d306ad01..0c7b6acaa4afbaa45c440fccb194399ea60539d2 100644 (file)
@@ -56,7 +56,7 @@ function block_on_function_lock($fn_name, $wait_sec = 2, $timeout = 30) {
                                dbesc($fn_name)
                     );
 
-               if(dbm::is_result($r) && $r[0]['locked'])
+               if (dbm::is_result($r) && $r[0]['locked'])
                        sleep($wait_sec);
 
        } while(dbm::is_result($r) && $r[0]['locked'] && ((time() - $start) < $timeout));