mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-30 23:24:00 +08:00
断开连接时 退出 等待数据返回
This commit is contained in:
@@ -1037,6 +1037,7 @@ public abstract class ProtocolBase : DisposableObject, IProtocol
|
||||
lock (Channel)
|
||||
{
|
||||
Channel.Starting -= ChannelStarting;
|
||||
Channel.Stoped -= ChannelStoped;
|
||||
Channel.Started -= ChannelStarted;
|
||||
Channel.Received -= Received;
|
||||
Channel.Collects.Remove(this);
|
||||
|
||||
Reference in New Issue
Block a user