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:
parent
9772322613
commit
e9e9fd7c3f
9 changed files with 30 additions and 88 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue