fix Connection ownership
Keep alive during bev*() callbacks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user