don't re-schedule resend timer if nothing to resend

pull/759/merge
orignal 7 years ago
parent 7c70dbce65
commit 13111c4b42

@ -462,6 +462,7 @@ namespace transport
else else
++it; ++it;
} }
if (m_SentMessages.empty ()) return; // nothing to resend
if (numResent < MAX_OUTGOING_WINDOW_SIZE) if (numResent < MAX_OUTGOING_WINDOW_SIZE)
ScheduleResend (); ScheduleResend ();
else else

Loading…
Cancel
Save