From e9e9fd7c3f12bc5119b567ad37527d777859dbc0 Mon Sep 17 00:00:00 2001 From: sapier Date: Tue, 3 Dec 2013 23:32:03 +0100 Subject: Replace SimpleThread by JThread now implementing same features --- src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 42262846f..8f83f6219 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -556,7 +556,7 @@ Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout, Connection::~Connection() { - stop(); + Stop(); // Delete peers for(std::map::iterator j = m_peers.begin(); @@ -578,7 +578,7 @@ void * Connection::Thread() u32 curtime = porting::getTimeMs(); u32 lasttime = curtime; - while(getRun()) + while(!StopRequested()) { BEGIN_DEBUG_EXCEPTION_HANDLER -- cgit v1.2.3