aboutsummaryrefslogtreecommitdiffstats
path: root/src/licenser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/licenser.cpp')
-rw-r--r--src/licenser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/licenser.cpp b/src/licenser.cpp
index 0e4540b..3bd5f6b 100644
--- a/src/licenser.cpp
+++ b/src/licenser.cpp
@@ -101,8 +101,10 @@ int Licenser::listen()
reply = replyString[e_bad_request];
}
- if (m_currentClient->hasFloatingLicense()) {
- // QA tool, Coco or Squish (client with floating license): Store it in cache
+ if (m_currentClient->hasFloatingLicense()
+ && reply == replyString[e_license_granted]) {
+ // QA tool, Coco or Squish (client with floating license):
+ // Store it in cache, but only if license has ben granted
std::cout << "Storing client in cache\n";
m_floatingClients.push_back(m_currentClient);
}