Skip to content

Commit

Permalink
explicitly delete work and resolver object before deleting io_service…
Browse files Browse the repository at this point in the history
… references zaphoyd#510
  • Loading branch information
Peter Thorson committed Feb 7, 2016
1 parent 563fcc6 commit b76422a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions websocketpp/transport/asio/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ class endpoint : public config::socket_type {

~endpoint() {
// clean up our io_service if we were initialized with an internal one.

// Explicitly destroy local objects
m_acceptor.reset();
//m_resolver.reset();
//m_work.reset();
if (m_state != UNINITIALIZED && !m_external_io_service) {
delete m_io_service;
}
Expand Down

0 comments on commit b76422a

Please sign in to comment.