Timer must be initialized in Client::init and shutdown in

Client::shutdown.

Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
This commit is contained in:
Samuel Just 2010-11-22 10:53:55 -08:00
parent 8eb4de9e6e
commit 3f8f59059a

View File

@ -256,6 +256,7 @@ void Client::dump_cache()
void Client::init()
{
Mutex::Locker lock(client_lock);
timer.init();
objectcacher->start();
@ -298,6 +299,7 @@ void Client::shutdown()
objectcacher->stop(); // outside of client_lock! this does a join.
client_lock.Lock();
timer.shutdown();
objecter->shutdown();
client_lock.Unlock();
monclient->shutdown();