]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/iface.cpp
Clear completion flag before making request.
[stg.git] / 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)