]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Set "deleted" flag for user before executing notifiers
[stg.git] / 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;