From bb3aa2fb37071f48a5312df8688c0a6990644fbb Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 4 Apr 2013 19:23:16 +0200 Subject: Stop recreating hashmaps every hour, move garbage collection code related to local users to UserManager --- include/usermanager.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/usermanager.h') diff --git a/include/usermanager.h b/include/usermanager.h index 3d7fe88fb..812d8e2f2 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -70,6 +70,12 @@ class CoreExport UserManager */ clonemap global_clones; + /** + * Reset the already_sent IDs so we don't wrap it around and drop a message + * Also removes all expired invites + */ + void GarbageCollect(); + /** Add a client to the system. * This will create a new User, insert it into the user_hash, * initialize it as not yet registered, and add it to the socket engine. -- cgit v1.2.3