Terminate thread when done

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2020-12-02 19:24:56 +03:00
parent 810820283f
commit f4007d7007

View File

@ -136,6 +136,7 @@ public class MakkahCity {
}
inputListener.stop();
t.interrupt();
System.exit(0);
}
private static void checkInput() {