summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/steam_queue.cpp10
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);