mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-19 05:48:07 -04:00
Cancel loading fixes (#4484)
* Loads now cancel correctly on disconnect/close across all entry points * Unified some loading flow and UI logic * Fixed errors when cancelling mid-load
This commit is contained in:
@@ -562,7 +562,13 @@ public class BaseFileSystem
|
||||
if ( filesystem == null ) return;
|
||||
if ( filesystem.system == null ) return;
|
||||
|
||||
(system as Zio.FileSystems.AggregateFileSystem).RemoveFileSystem( filesystem.system );
|
||||
if ( system is Zio.FileSystems.AggregateFileSystem fs )
|
||||
{
|
||||
if ( !fs.GetFileSystems().Contains( filesystem.system ) )
|
||||
return;
|
||||
|
||||
fs.RemoveFileSystem( filesystem.system );
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user