From d6842f4f1341f82f0f80a90eb7fff220cdfb28af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 7 Dec 2014 23:30:29 +0000 Subject: Steam: Fix infinite loop when switching to offline when there are still requests in queue git-svn-id: http://svn.miranda-ng.org/main/trunk@11267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index b0a7c959d9..a134aa9890 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -47,7 +47,7 @@ void CSteamProto::StopQueue() int count = requestsQueue.getCount(); while (count > 0) - requestsQueue.remove(count - 1); + requestsQueue.remove(--count); } // logoff -- cgit v1.2.3