Skip to content

Commit b76422a

Browse files
author
Peter Thorson
committed
explicitly delete work and resolver object before deleting io_service references zaphoyd#510
1 parent 563fcc6 commit b76422a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

websocketpp/transport/asio/endpoint.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ class endpoint : public config::socket_type {
100100

101101
~endpoint() {
102102
// clean up our io_service if we were initialized with an internal one.
103+
104+
// Explicitly destroy local objects
103105
m_acceptor.reset();
106+
//m_resolver.reset();
107+
//m_work.reset();
104108
if (m_state != UNINITIALIZED && !m_external_io_service) {
105109
delete m_io_service;
106110
}

0 commit comments

Comments
 (0)