Commit ab555811 authored by Mathieu Stefani's avatar Mathieu Stefani Committed by GitHub

Merge pull request #15 from underdoeg/master

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