Clients dispose fileTransfers when shutting down (otherwise the files will stay open and cause "used by another process" exceptions when attempting to receive them again)
This commit is contained in:
@@ -1408,6 +1408,11 @@ namespace Barotrauma.Networking
|
|||||||
{
|
{
|
||||||
client.Shutdown("");
|
client.Shutdown("");
|
||||||
|
|
||||||
|
foreach (var fileTransfer in FileReceiver.ActiveTransfers)
|
||||||
|
{
|
||||||
|
fileTransfer.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
if (HasPermission(ClientPermissions.ServerLog))
|
if (HasPermission(ClientPermissions.ServerLog))
|
||||||
{
|
{
|
||||||
ServerLog?.Save();
|
ServerLog?.Save();
|
||||||
|
|||||||
Reference in New Issue
Block a user