From: Maxim Mamontov Date: Sat, 5 Sep 2015 12:24:27 +0000 (+0300) Subject: Clear completion flag before making request. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/59d20816e25f345a8a9cb778f954f1aa955883e6?hp=a02618d27fc78002261080ab0c95cef53c39ac14 Clear completion flag before making request. --- 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)