mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 02:35:42 +00:00
ConfigureAwait(false) on awaited tasks
This commit is contained in:
parent
189ef770eb
commit
f846b43680
@ -109,7 +109,7 @@ public sealed partial class VirtualParadiseClient
|
||||
}
|
||||
}
|
||||
|
||||
(reason, virtualParadiseObject) = await taskCompletionSource.Task;
|
||||
(reason, virtualParadiseObject) = await taskCompletionSource.Task.ConfigureAwait(false);
|
||||
_objectCompletionSources.TryRemove(id, out _);
|
||||
|
||||
if (virtualParadiseObject is not null)
|
||||
@ -182,7 +182,7 @@ public sealed partial class VirtualParadiseClient
|
||||
|
||||
var location = new Location(CurrentWorld!, position, rotation);
|
||||
virtualParadiseObject.Location = location;
|
||||
virtualParadiseObject.Owner = await GetUserAsync(owner);
|
||||
virtualParadiseObject.Owner = await GetUserAsync(owner).ConfigureAwait(false);
|
||||
return virtualParadiseObject;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user