]> git.stg.codes - stg.git/commitdiff
Fix passing params to OnDisconnect in rscriptd.
authorMaxim Mamontov <madf@madf.info>
Sun, 13 Nov 2016 02:12:56 +0000 (21:12 -0500)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 22 Dec 2016 19:32:58 +0000 (21:32 +0200)
projects/rscriptd/listener.cpp

index cc2a05603c88666c9d421fbf752a0e95160563f6..0b626afd1f936be27b20a200f9409797c6cb1c9b 100644 (file)
@@ -396,6 +396,7 @@ while (it != pending.end() && count < 256)
             {
             printfd(__FILE__, "Disconnect user '%s'\n", it->login.c_str());
             // Disconnect existing user
             {
             printfd(__FILE__, "Disconnect user '%s'\n", it->login.c_str());
             // Disconnect existing user
+            uit->params = it->params;
             Disconnect(*uit);
             users.erase(uit);
             }
             Disconnect(*uit);
             users.erase(uit);
             }