ServerContext clear timer queue
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user