updates `m_last_sent` in `peer_connection::setup_send()` instand of `peer_connection::keep_alive()`

This commit is contained in:
tnextday 2016-11-16 22:41:57 +08:00 committed by Arvid Norberg
parent a7dcdf30ef
commit b25ea5329f
1 changed files with 1 additions and 1 deletions

View File

@ -5698,6 +5698,7 @@ namespace libtorrent
}
m_channel_state[upload_channel] |= peer_info::bw_network;
m_last_sent = aux::time_now();
}
void peer_connection::on_disk()
@ -6847,7 +6848,6 @@ namespace libtorrent
peer_log(peer_log_alert::outgoing_message, "KEEPALIVE");
#endif
m_last_sent = aux::time_now();
write_keepalive();
}