1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 19:58:48 +00:00

catch (VirtualParadiseException)

This commit is contained in:
Oliver Booth 2022-11-30 18:59:29 +00:00
parent a90d2ccc7f
commit eef5dcf1c2
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -5,6 +5,7 @@ using System.Threading.Channels;
using VpSharp.ClientExtensions; using VpSharp.ClientExtensions;
using VpSharp.Entities; using VpSharp.Entities;
using VpSharp.EventData; using VpSharp.EventData;
using VpSharp.Exceptions;
using VpSharp.Internal; using VpSharp.Internal;
using VpSharp.Internal.NativeAttributes; using VpSharp.Internal.NativeAttributes;
using static VpSharp.Internal.Native; using static VpSharp.Internal.Native;
@ -239,7 +240,7 @@ public sealed partial class VirtualParadiseClient
{ {
virtualParadiseObject = await GetObjectAsync(objectId).ConfigureAwait(false); virtualParadiseObject = await GetObjectAsync(objectId).ConfigureAwait(false);
} }
catch // any exception: we don't care about GetObject failing. ID is always available catch (VirtualParadiseException) // any exception: we don't care about GetObject failing. ID is always available
{ {
virtualParadiseObject = null; virtualParadiseObject = null;
} }