{
// If we got the first command sent, we update the replyTimeoutTimer to count the remaining time untill timeout.
// This should be less than Client::UDP_API_COMMAND_TIMEOUT, but never negative.
- int newTimeout = qBound(0, Client::UDP_API_COMMAND_TIMEOUT - sentCommands[commandId]->timeSent().secsTo(QDateTime::currentDateTime()), Client::UDP_API_COMMAND_TIMEOUT);
+ int newTimeout = qBound(0, Client::UDP_API_COMMAND_TIMEOUT - sentCommands[commandId]->timeSent().secsTo(QDateTime::currentDateTime()), Client::UDP_API_COMMAND_TIMEOUT);
newTimeout *= 1000;
replyTimeoutTimer->start(newTimeout);
#ifdef ANIDBUDPCLIENT_CLIENT_MISC_DEBUG
#endif
if (!sentCommandOrder.isEmpty())
{
- int newTimeout = qBound(0, Client::UDP_API_COMMAND_TIMEOUT - sentCommands[commandId]->timeSent().secsTo(QDateTime::currentDateTime()), Client::UDP_API_COMMAND_TIMEOUT);
+ int newTimeout = qBound(0, Client::UDP_API_COMMAND_TIMEOUT - sentCommands[commandId]->timeSent().secsTo(QDateTime::currentDateTime()), Client::UDP_API_COMMAND_TIMEOUT);
newTimeout *= 1000;
replyTimeoutTimer->start(newTimeout);
#ifdef ANIDBUDPCLIENT_CLIENT_MISC_DEBUG