remove unused _recvThread field
This commit is contained in:
@@ -10,7 +10,6 @@ public sealed class TcpSttSource : ISttSource
|
|||||||
private TcpClient? _tcp;
|
private TcpClient? _tcp;
|
||||||
private NetworkStream? _stream;
|
private NetworkStream? _stream;
|
||||||
private StreamWriter? _writer;
|
private StreamWriter? _writer;
|
||||||
private Thread? _recvThread;
|
|
||||||
private Thread? _connectThread;
|
private Thread? _connectThread;
|
||||||
private volatile bool _running;
|
private volatile bool _running;
|
||||||
private readonly object _sendLock = new();
|
private readonly object _sendLock = new();
|
||||||
@@ -53,7 +52,6 @@ public sealed class TcpSttSource : ISttSource
|
|||||||
// Threads are background — they'll die when the process exits.
|
// Threads are background — they'll die when the process exits.
|
||||||
// Closing the socket unblocks any pending Read.
|
// Closing the socket unblocks any pending Read.
|
||||||
_connectThread?.Join(1000);
|
_connectThread?.Join(1000);
|
||||||
_recvThread?.Join(1000);
|
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user