unlock_data without arg fixed
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 13 May 2011 16:39:26 +0000 (18:39 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 13 May 2011 16:39:26 +0000 (18:39 +0200)
web/briskin5/index_rd.php
web/index_rd.php

index 115f9b5..22903a2 100644 (file)
@@ -98,7 +98,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
             $S_load_stat['U_first_loop']++;
 
             if (($user = Bin5_user::load_data($table_idx, $proxy_step['i'], $sess)) == FALSE) {
-                Bin5::unlock_data();
+                Bin5::unlock_data($sem);
                 ignore_user_abort(FALSE);
                 return (unrecerror());
             }
index fc8aa0c..d5c5d87 100644 (file)
@@ -119,7 +119,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
             // Aggiorna l'expire time lato server
             $S_load_stat['U_first_loop']++;
             if (($user = User::load_data($proxy_step['i'], $sess)) == FALSE) {
-                Room::unlock_data();
+                Room::unlock_data($sem);
                 ignore_user_abort(FALSE);
                 return (unrecerror());
             }
@@ -131,7 +131,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
                 
                 $S_load_stat['R_garbage']++;
                 if (($room = Room::load_data()) == FALSE) {
-                    Room::unlock_data();
+                    Room::unlock_data($sem);
                     ignore_user_abort(FALSE);
                     return (unrecerror());
                 }
@@ -282,7 +282,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
         $sem = Room::lock_data();
         $S_load_stat['U_heavy']++;
         if (($user = User::load_data($proxy_step['i'], $sess)) == FALSE) {
-            Room::unlock_data();
+            Room::unlock_data($sem);
             ignore_user_abort(FALSE);
             return (unrecerror());
         }