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