diff --git a/src/client.cpp b/src/client.cpp index fba7a67..e169be2 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -134,11 +134,17 @@ Context::~Context() {} const Config& Context::config() const { + if(!pvt) + throw std::logic_error("NULL Context"); + return pvt->effective; } void Context::hurryUp() { + if(!pvt) + throw std::logic_error("NULL Context"); + pvt->tcp_loop.call([this](){ pvt->poke(); });