This commit is contained in:
Michael Davidsaver
2020-02-27 09:32:15 -08:00
parent 1dbf5efbf8
commit c98390e80f
2 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ Channel::~Channel()
context->chanByCID.erase(cid);
context->chanByName.erase(name);
// searchBuckets cleaned in tickSearch()
if(state==Creating || state==Active) {
if((state==Creating || state==Active) && conn && conn->bev) {
{
(void)evbuffer_drain(conn->txBody.get(), evbuffer_get_length(conn->txBody.get()));