mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 14:38:13 -05:00
ServiceWorldRequests while async map load is unfinished
This commit is contained in:
committed by
Matt Stevens
parent
8c25780848
commit
f22c6ee375
@@ -177,6 +177,8 @@ public sealed partial class SceneMap : IValid
|
||||
|
||||
while ( !worldRef.IsWorldLoaded() )
|
||||
{
|
||||
g_pWorldRendererMgr.ServiceWorldRequests();
|
||||
|
||||
await Task.Delay( 1, cancelToken );
|
||||
cancelToken.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user