]> git.stg.codes - stg.git/commitdiff
Clear completion flag before making request.
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 5 Sep 2015 12:24:27 +0000 (15:24 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 5 Sep 2015 12:24:27 +0000 (15:24 +0300)
projects/rlm_stg/iface.cpp

index d87366084fece4605ac83bef4c6bbcb609a8bcee..0cb30b932090e7a0721e17212009455d81bdd539 100644 (file)
@@ -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)