feat(multiplayer): notify user if connection lost.

This commit is contained in:
huanghongxun
2021-09-26 03:08:06 +08:00
parent 7c76c919bc
commit 6c1046c060
8 changed files with 252 additions and 38 deletions

View File

@@ -119,6 +119,10 @@ public class ManagedProcess {
*/
public void stop() {
process.destroy();
destroyRelatedThreads();
}
public void destroyRelatedThreads() {
relatedThreads.forEach(Thread::interrupt);
}