ServerContext clear timer queue

This commit is contained in:
Michael Davidsaver
2017-06-22 13:51:38 +02:00
parent ba76cd0eb3
commit 3dca3dc38f
2 changed files with 4 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ namespace {
struct BreakTransport : TransportSender
{
virtual ~BreakTransport() {}
virtual void send(epics::pvData::ByteBuffer* buffer, TransportSendControl* control)
virtual void send(epics::pvData::ByteBuffer* buffer, TransportSendControl* control) OVERRIDE FINAL
{
throw epics::pvAccess::detail::connection_closed_exception("Break");
}

View File

@@ -329,6 +329,9 @@ void ServerContextImpl::shutdown()
// this will also destroy all channels
destroyAllTransports();
// drop timer queue
_timer.reset();
// response handlers hold strong references to us,
// so must break the cycles
_responseHandler.reset();