You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
socket->SendMessageQueue.clear();//remove any remaining messages
70
-
write(parent, socket, msg.msg);
71
-
} else {
72
-
socket->SendMessageQueue.pop_front();
73
-
discardedcount+=1;
74
-
}
75
-
}
76
-
SL_WS_LITE_LOG(Logging_Levels::INFO_log_level, "Sent Close message and discarded " <<discardedcount<< " other messages. Remaining messages "<<socket->SendMessageQueue.size());
77
-
socket->SendMessageQueue.clear();//just in case
78
-
}
79
-
60
+
automsg(socket->SendMessageQueue.front());
61
+
write(parent, socket, msg.msg);
80
62
}
81
63
else {
82
64
socket->Writing = false;
@@ -120,15 +102,16 @@ namespace SL {
120
102
if (parent->onDisconnection) {
121
103
parent->onDisconnection(socket, msg.code, "");
122
104
}
105
+
socket->SendMessageQueue.clear();//clear all outbound messages
0 commit comments