From 516d1797c9c0f9fe073a9a1c19a4dba13d8cfef7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 10 Apr 2018 21:02:34 -0700 Subject: [PATCH] ircd::server: Clear op_fini flag on err_clear(). --- ircd/server.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/server.cc b/ircd/server.cc index 4892def42..445df0c26 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -392,6 +392,7 @@ ircd::server::peer::err_clear() { const auto ret{bool(e)}; e.reset(nullptr); + op_fini = false; return ret; } @@ -429,7 +430,7 @@ ircd::server::peer::err_check() if(op_fini) return false; - if(!e) + if(!err_has()) return true; //TODO: The specific error type should be switched and finer