fixed session logger destruction order issue
This commit is contained in:
@@ -184,6 +184,12 @@ namespace libtorrent
|
||||
struct TORRENT_EXPORT session_impl: boost::noncopyable, initialize_timer
|
||||
, boost::enable_shared_from_this<session_impl>
|
||||
{
|
||||
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
|
||||
// this needs to be destructed last, since other components may log
|
||||
// things as they are being destructed. That's why it's declared at
|
||||
// the top of session_impl
|
||||
boost::shared_ptr<logger> m_logger;
|
||||
#endif
|
||||
|
||||
// the size of each allocation that is chained in the send buffer
|
||||
enum { send_buffer_size = 128 };
|
||||
@@ -1033,8 +1039,6 @@ namespace libtorrent
|
||||
std::list<boost::shared_ptr<tracker_logger> > m_tracker_loggers;
|
||||
|
||||
std::string m_logpath;
|
||||
public:
|
||||
boost::shared_ptr<logger> m_logger;
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user