Merge branch 'xMAC94x/network_overflow' into 'master'

add a check to break the sending loop if the current bytes got greater than the total bytes.

See merge request veloren/veloren!3429
This commit is contained in:
Marcel 2022-06-08 09:05:40 +00:00
commit ff17adb6da

View File

@ -130,6 +130,9 @@ impl PrioManager {
continue;
}
process_stream(sid, stream, per_stream_bytes, &mut cur_bytes);
if cur_bytes >= total_bytes {
break;
}
}
}
}