mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
ff17adb6da
@ -130,6 +130,9 @@ impl PrioManager {
|
||||
continue;
|
||||
}
|
||||
process_stream(sid, stream, per_stream_bytes, &mut cur_bytes);
|
||||
if cur_bytes >= total_bytes {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user