fix Connection ownership

Keep alive during bev*() callbacks
This commit is contained in:
Michael Davidsaver
2020-03-02 15:37:43 -08:00
parent 4d7ca87f8a
commit 20acafa963
6 changed files with 16 additions and 4 deletions
+5
View File
@@ -105,6 +105,11 @@ void Connection::bevEvent(short events)
}
}
std::shared_ptr<ConnBase> Connection::self_from_this()
{
return shared_from_this();
}
void Connection::cleanup()
{
// (maybe) keep myself alive