client Context safety

This commit is contained in:
Michael Davidsaver
2020-02-21 08:02:47 -08:00
parent 1a4e6e8d32
commit bd1cbe1b64
+6
View File
@@ -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();
});