From 7915b5bf1d02ce34c612fe0db2b486140d8abcd1 Mon Sep 17 00:00:00 2001 From: holmes1412 Date: Sun, 31 Oct 2021 16:27:45 +0800 Subject: [PATCH] update channel state after close --- src/factory/WFChannel.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factory/WFChannel.inl b/src/factory/WFChannel.inl index eefdc05d..4408b78a 100644 --- a/src/factory/WFChannel.inl +++ b/src/factory/WFChannel.inl @@ -229,7 +229,8 @@ SubTask *WFComplexChannel::done() if (this->state == WFT_STATE_SUCCESS) this->state = WFT_STATE_UNDEFINED; -// if (this->established == 0 && this->state == WFT_STATE_SYS_ERROR) // sending == false + if (this->established == 0 && this->state == WFT_STATE_SYS_ERROR) // sending == false + this->state = WFT_STATE_UNDEFINED; // delete this; return series->pop();