feat(multiplayer): notify user if connection lost.
This commit is contained in:
@@ -119,6 +119,10 @@ public class ManagedProcess {
|
||||
*/
|
||||
public void stop() {
|
||||
process.destroy();
|
||||
destroyRelatedThreads();
|
||||
}
|
||||
|
||||
public void destroyRelatedThreads() {
|
||||
relatedThreads.forEach(Thread::interrupt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user