]> git.stg.codes - stg.git/commitdiff
Set "deleted" flag for user before executing notifiers
authorMaxim Mamontov <faust.madf@gmail.com>
Thu, 1 Sep 2011 13:26:35 +0000 (16:26 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 1 Sep 2011 13:26:35 +0000 (16:26 +0300)
projects/stargazer/users_impl.cpp

index 5ad112b9523aae65158d8aaebf0c9545a5ea45c5..fa7265600c578e3b6faa622235c6e2087fc45e37 100644 (file)
@@ -228,6 +228,8 @@ if (!priv->userAddDel)
                      login.c_str());
         return;
         }
+
+    u->SetDeleted();
     }
 
     {
@@ -252,7 +254,6 @@ if (!priv->userAddDel)
     STG_LOCKER lock(&mutex, __FILE__, __LINE__);
 
     u->OnDelete();
-    u->SetDeleted();
 
     USER_TO_DEL utd;
     utd.iter = u;