aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Littow <sami.littow@qt.io>2023-01-19 12:10:03 +0200
committerSami Littow <sami.littow@qt.io>2023-01-19 14:02:25 +0000
commit53b007aee16cfc887f19a974901b3eec5f9ea980 (patch)
tree9723fa98aef29b211224954fe150a8695ce860e2
parente1640c5c81050805f4656b2c9c47d8693023275c (diff)
Fix an issue with fLoating licenses
- They were going into cache even when no license granted Change-Id: Ic7451c994c81af273018632024b84734605c3d7f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
-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);
}