summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
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<u16, Peer*>::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