mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-20 15:40:16 +01:00
Fix null annotation
This commit is contained in:
parent
7f19a2531e
commit
4439ce6f2d
|
|
@ -112,7 +112,7 @@ namespace NmeaParser
|
|||
await this.CloseAsync().ConfigureAwait(false);
|
||||
}
|
||||
catch { }
|
||||
DeviceDisconnected.Invoke(this, ex);
|
||||
DeviceDisconnected?.Invoke(this, ex);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -247,7 +247,7 @@ namespace NmeaParser
|
|||
/// <summary>
|
||||
/// Raised when a device raises the same error multiple times and can't recover.
|
||||
/// </summary>
|
||||
public event EventHandler<Exception> DeviceDisconnected;
|
||||
public event EventHandler<Exception>? DeviceDisconnected;
|
||||
|
||||
/// <summary>
|
||||
/// Releases unmanaged and - optionally - managed resources.
|
||||
|
|
|
|||
Loading…
Reference in a new issue