diff options
| author | 2014-01-24 13:08:13 +0100 | |
|---|---|---|
| committer | 2014-01-24 13:08:13 +0100 | |
| commit | f1f8173bb5ca5f5ce01ad92d0ccd309f232fc138 (patch) | |
| tree | f9dc48385b78066d8da9fba546f979d6686f4be3 /src/inspircd.cpp | |
| parent | Convert UserChanList to an intrusively linked list (diff) | |
| download | inspircd++-f1f8173bb5ca5f5ce01ad92d0ccd309f232fc138.tar.gz inspircd++-f1f8173bb5ca5f5ce01ad92d0ccd309f232fc138.tar.bz2 inspircd++-f1f8173bb5ca5f5ce01ad92d0ccd309f232fc138.zip | |
Convert LocalUserList to an intrusively linked list
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index fb33f1937..12962d92d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -107,12 +107,9 @@ void InspIRCd::Cleanup() ports.clear(); /* Close all client sockets, or the new process inherits them */ - LocalUserList::reverse_iterator i = Users->local_users.rbegin(); - while (i != this->Users->local_users.rend()) - { - User* u = *i++; - Users->QuitUser(u, "Server shutdown"); - } + LocalUserList& list = Users->local_users; + for (LocalUserList::iterator i = list.begin(); i != list.end(); ++i) + Users->QuitUser(*i, "Server shutdown"); GlobalCulls.Apply(); Modules->UnloadAll(); |
