From 470bbb5eed88d5a249d3f8d8738b72e6be337773 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 20 Jun 2009 11:15:06 +0000 Subject: [PATCH] Trying to fix strange sender crash. --- src/net/common/senderhelper.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/net/common/senderhelper.cpp b/src/net/common/senderhelper.cpp index 216a8ec5..f39c3236 100644 --- a/src/net/common/senderhelper.cpp +++ b/src/net/common/senderhelper.cpp @@ -17,16 +17,17 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include +#include +#include \ + #include #include +#include #include #include #include #include -#include - using namespace std; using boost::asio::ip::tcp; @@ -39,7 +40,7 @@ using boost::asio::ip::tcp; typedef std::list > SendDataList; -class SendDataManager +class SendDataManager : public boost::enable_shared_from_this { public: SendDataManager() @@ -105,7 +106,7 @@ SendDataManager::AsyncSendNextPacket(boost::shared_ptr