Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a22c32

Browse files
committed
fix process to resend command after successful reconnection
1 parent e8eaad3 commit 2a22c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/core/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ client::resend_failed_commands(void) {
288288
//! dequeue commands and move them to a local variable
289289
std::queue<command_request> commands = std::move(m_commands);
290290

291-
while (m_commands.size() > 0) {
291+
while (commands.size() > 0) {
292292
//! Reissue the pending command and its callback.
293293
unprotected_send(commands.front().command, commands.front().callback);
294294

0 commit comments

Comments
 (0)