1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Replace SimpleThread by JThread now implementing same features

This commit is contained in:
sapier 2013-12-03 23:32:03 +01:00
parent 9772322613
commit e9e9fd7c3f
9 changed files with 30 additions and 88 deletions

View file

@ -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