src/common/reactor.cc: Fixed reactor throwing second exception during...

src/common/reactor.cc: Fixed reactor throwing second exception during destruction after raising an exception on failed initialization...
{debian/changelog,version.txt}: Bumped versioning...
parent a81d3ade
pistache (0.0.001-git20191231-kip1) eoan; urgency=medium pistache (0.0.001-git20200101-kip1) eoan; urgency=medium
* Latest upstream. * Latest upstream.
-- Kip Warner <kip@thevertigo.com> Tue, 31 Dec 2019 11:21:10 -0800 -- Kip Warner <kip@thevertigo.com> Tue, 31 Dec 2019 20:21:00 -0800
pistache (0.0.001-git20191031-kip1) eoan; urgency=medium pistache (0.0.001-git20191031-kip1) eoan; urgency=medium
......
...@@ -585,7 +585,8 @@ Reactor::run() { ...@@ -585,7 +585,8 @@ Reactor::run() {
void void
Reactor::shutdown() { Reactor::shutdown() {
impl()->shutdown(); if(impl_)
impl()->shutdown();
} }
void void
...@@ -596,7 +597,7 @@ Reactor::runOnce() { ...@@ -596,7 +597,7 @@ Reactor::runOnce() {
Reactor::Impl * Reactor::Impl *
Reactor::impl() const { Reactor::impl() const {
if (!impl_) if (!impl_)
throw std::runtime_error("Invalid object state, you should call init() before"); throw std::runtime_error("Invalid object state, you should call init() before.");
return impl_.get(); return impl_.get();
} }
......
VERSION_MAJOR 0 VERSION_MAJOR 0
VERSION_MINOR 0 VERSION_MINOR 0
VERSION_PATCH 001 VERSION_PATCH 001
VERSION_GIT_DATE 20191231 VERSION_GIT_DATE 20200101
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