diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-03-06 08:42:27 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-03-06 08:42:27 +0000 |
commit | 16316a39e4efcf00cb98fd078377a78ee9e267a8 (patch) | |
tree | ec833c98bed37b46d8f76234fa0c0378ba32facb | |
parent | 6bb097c17d8d18ba2de57f32789abe8d2e2c766e (diff) |
Steam: Fix commit r12325
git-svn-id: http://svn.miranda-ng.org/main/trunk@12348 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/Steam/src/steam_queue.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index d5eb363ca0..54cb2de4fc 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -82,15 +82,14 @@ void CSteamProto::PushRequest(SteamWebApi::HttpRequest *request, RESPONSE respon void CSteamProto::PushRequest(SteamWebApi::HttpRequest *request, RESPONSE response, void *arg)
{
- if (isTerminated || !IsOnline())
+ if (isTerminated)
{
// Call response callback so it can react properly (free arguments, raise errors, etc.)
if (response != NULL)
(this->*(response))(NULL, arg);
- }
- if (isTerminated)
return;
+ }
{
mir_cslock lock(requests_queue_lock);
@@ -104,15 +103,14 @@ void CSteamProto::PushRequest(SteamWebApi::HttpRequest *request, RESPONSE respon void CSteamProto::ExecuteRequest(QueueItem *item)
{
- if (isTerminated || !IsOnline())
+ if (isTerminated)
{
// Call response callback so it can react properly (free arguments, raise errors, etc.)
if (item->responseCallback != NULL)
(this->*(item->responseCallback))(NULL, item->arg);
- }
- if (isTerminated)
return;
+ }
debugLogA("CSteamProto::ExecuteRequest: %s", item->request->szUrl);
|