mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-21 08:57:38 +00:00
Merge pull request #171 from JLLeitschuh/fix/daemon_thread
Make threads daemon threads
This commit is contained in:
@@ -231,7 +231,7 @@ public class HTTPRequest
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
|
@@ -113,6 +113,7 @@ public class ComputerThread
|
||||
} );
|
||||
|
||||
// Run the task
|
||||
worker.setDaemon(true);
|
||||
worker.start();
|
||||
worker.join( 7000 );
|
||||
|
||||
@@ -173,7 +174,8 @@ public class ComputerThread
|
||||
}
|
||||
}
|
||||
}, "Computer Dispatch Thread" );
|
||||
|
||||
|
||||
m_thread.setDaemon(true);
|
||||
m_thread.start();
|
||||
m_running = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user