From 84a3ff2804a2df97a9b95d033b2c35de73271972 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 May 2013 00:57:07 +0300 Subject: also clear resource cache if switching servers. --- src/commands.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 2421e63f4..ab2558e2c 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -359,10 +359,7 @@ impHandler0(clear) impHandler0(cleanGraphics) { - ResourceManager *const resman = ResourceManager::getInstance(); - resman->cleanProtected(); - while (resman->cleanOrphans(true)) - continue; + ResourceManager::getInstance()->clearCache(); if (debugChatTab) { -- cgit v1.2.3-70-g09d2