Skip to content

Commit 7c532aa

Browse files
author
LoneWandererProductions
committed
small oversight
1 parent 686af5e commit 7c532aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Communication/SystemSerialPort.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal sealed class SystemSerialPort : ISerialPort, IDisposable
2929
public event EventHandler? DataReceived;
3030

3131
/// <inheritdoc />
32-
public bool IsOpen => _port.IsOpen;
32+
public bool IsOpen => !_disposed && _port.IsOpen;
3333

3434
/// <summary>
3535
/// Initializes a new instance of the <see cref="SystemSerialPort"/> class.

0 commit comments

Comments
 (0)