update channel state after close

This commit is contained in:
holmes1412
2021-10-31 16:27:45 +08:00
parent 8d0274ed97
commit 7915b5bf1d
+2 -1
View File
@@ -229,7 +229,8 @@ SubTask *WFComplexChannel<MSG>::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();