From: Maxim Mamontov Date: Sun, 13 Nov 2016 02:12:56 +0000 (-0500) Subject: Fix passing params to OnDisconnect in rscriptd. X-Git-Tag: 2.409~52 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/3b767d57751253afc10cb35d01e1c4e82468ccf2?hp=e090d7932a34cc001b88d03ecefdbabdd2301637 Fix passing params to OnDisconnect in rscriptd. --- diff --git a/projects/rscriptd/listener.cpp b/projects/rscriptd/listener.cpp index cc2a0560..0b626afd 100644 --- a/projects/rscriptd/listener.cpp +++ b/projects/rscriptd/listener.cpp @@ -396,6 +396,7 @@ while (it != pending.end() && count < 256) { printfd(__FILE__, "Disconnect user '%s'\n", it->login.c_str()); // Disconnect existing user + uit->params = it->params; Disconnect(*uit); users.erase(uit); }