Destroy abandoned websocket ops on shutdown

fix #1358
This commit is contained in:
Vinnie Falco committed 2019-02-27 16:44:01 -08:00
1 parent 72a99c43a7
commit 92ad50a8e7
6 files changed
+42

No files matched your search

@@ -39,6 +39,16 @@ operator=(saved_handler&& other) noexcept
return *this;
}
bool
saved_handler::
reset() noexcept
{
if(! p_)
return false;
boost::exchange(p_, nullptr)->destroy();
return true;
}
void
saved_handler::
invoke()