cleans up acceptor on destruction of endpoint transport component references #217

This commit is contained in:
Peter Thorson
2013-05-01 06:23:11 -05:00
parent b0b7f5e586
commit 04bbb4aa43

View File

@@ -92,6 +92,7 @@ public:
~endpoint() {
// clean up our io_service if we were initialized with an internal one.
m_acceptor.reset();
if (m_state != UNINITIALIZED && !m_external_io_service) {
delete m_io_service;
}