add logging when connection limits file transfer speed

This commit is contained in:
sudden6 2020-12-30 02:59:52 +01:00
parent 286cc44f54
commit fd73f3eeb6
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -1476,6 +1476,7 @@ static bool do_all_filetransfers(Messenger *m, int32_t friendnumber, void *userd
if (max_speed_reached(m->net_crypto, friend_connection_crypt_connection_id(
m->fr_c, friendcon->friendcon_id))) {
LOGGER_TRACE(m->log, "Maximum connection speed reached");
// connection doesn't support any more data
return false;
}