Commit 87e6224c authored by zhujiashun's avatar zhujiashun

Fix backup req bug in h2

parent e2556046
...@@ -1449,10 +1449,10 @@ private: ...@@ -1449,10 +1449,10 @@ private:
void H2UnsentRequest::DestroyStreamUserData(SocketUniquePtr& sending_sock, void H2UnsentRequest::DestroyStreamUserData(SocketUniquePtr& sending_sock,
Controller* cntl, Controller* cntl,
int /*error_code*/, int error_code,
bool /*end_of_rpc*/) { bool /*end_of_rpc*/) {
RemoveRefOnQuit deref_self(this); RemoveRefOnQuit deref_self(this);
if (sending_sock != NULL && cntl->ErrorCode() != 0) { if (sending_sock != NULL && (cntl->ErrorCode() != 0 || error_code != 0)) {
CHECK_EQ(cntl, _cntl); CHECK_EQ(cntl, _cntl);
std::unique_lock<butil::Mutex> mu(_mutex); std::unique_lock<butil::Mutex> mu(_mutex);
_cntl = NULL; _cntl = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment