From 59d20816e25f345a8a9cb778f954f1aa955883e6 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 5 Sep 2015 15:24:27 +0300 Subject: [PATCH] Clear completion flag before making request. --- projects/rlm_stg/iface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/rlm_stg/iface.cpp b/projects/rlm_stg/iface.cpp index d8736608..0cb30b93 100644 --- a/projects/rlm_stg/iface.cpp +++ b/projects/rlm_stg/iface.cpp @@ -89,6 +89,7 @@ STG_RESULT stgRequest(STG_CLIENT::TYPE type, const char* userName, const char* p return emptyResult(); } try { + response.done = false; client->request(type, toString(userName), toString(password), fromSTGPairs(pairs)); pthread_mutex_lock(&response.mutex); while (!response.done) -- 2.44.2