Pop message from queue before sending it

This commit is contained in:
badaix 2020-02-27 18:19:02 +01:00
parent ae9ecf00e3
commit c445deb95a
2 changed files with 3 additions and 3 deletions

View file

@ -626,7 +626,7 @@ void StreamServer::onMessageReceived(StreamSession* streamSession, const msg::Ba
timeMsg->refersTo = timeMsg->id;
timeMsg->latency = timeMsg->received - timeMsg->sent;
// LOG(INFO) << "Latency sec: " << timeMsg.latency.sec << ", usec: " << timeMsg.latency.usec << ", refers to: " << timeMsg.refersTo << "\n";
streamSession->sendAsync(timeMsg);
streamSession->sendAsync(timeMsg, true);
// refresh streamSession state
ClientInfoPtr client = Config::instance().getClientInfo(streamSession->clientId);