fixes a bug cleaning up external io_services

This commit is contained in:
Peter Thorson
2013-01-09 07:20:05 -06:00
parent 107b60dd01
commit 4edc446b01

View File

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