diff options
-rw-r--r-- | common/resourceaccess.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 5ed3609..a3478e6 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -500,16 +500,13 @@ void ResourceAccess::connected() | |||
500 | Commands::write(d->socket.data(), ++d->messageId, Commands::HandshakeCommand, fbb); | 500 | Commands::write(d->socket.data(), ++d->messageId, Commands::HandshakeCommand, fbb); |
501 | } | 501 | } |
502 | 502 | ||
503 | // Reenqueue pending commands, we failed to send them | ||
504 | processPendingCommandQueue(); | ||
503 | auto secret = SecretStore::instance().resourceSecret(d->resourceInstanceIdentifier); | 505 | auto secret = SecretStore::instance().resourceSecret(d->resourceInstanceIdentifier); |
504 | if (!secret.isEmpty()) { | 506 | if (!secret.isEmpty()) { |
505 | sendSecret(secret).exec(); | 507 | sendSecret(secret).exec(); |
506 | } | 508 | } |
507 | 509 | ||
508 | // Reenqueue pending commands, we failed to send them | ||
509 | processPendingCommandQueue(); | ||
510 | // Send queued commands | ||
511 | processCommandQueue(); | ||
512 | |||
513 | emit ready(true); | 510 | emit ready(true); |
514 | } | 511 | } |
515 | 512 | ||