Commit 62e11a8e authored by Philip Whitfield's avatar Philip Whitfield

added missing returns, listener check if bound on deconstruct

parent 59205d33
......@@ -343,6 +343,7 @@ struct PathBuilder {
PathBuilder&
hide(bool value = true) {
path_->hidden = value;
return *this;
}
private:
......
......@@ -194,6 +194,7 @@ public:
armed = other.armed;
timerFd = other.timerFd;
other.timerFd = -1;
return *this;
}
template<typename Duration>
......
......@@ -442,6 +442,7 @@ namespace Private {
else {
raise("Unsupported Transfer-Encoding", Code::Not_Implemented);
}
return State::Done;
}
State
......
......@@ -87,7 +87,7 @@ Listener::Listener(const Address& address)
}
Listener::~Listener() {
shutdown();
if (isBound()) shutdown();
if (acceptThread) acceptThread->join();
}
......
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