mirror of https://github.com/sbt/sbt.git
Call System.exit after the main thread is finished. Closes #565.
This commit is contained in:
parent
88e8090d7a
commit
4bb5007282
|
|
@ -82,10 +82,14 @@ public class ForkMain {
|
|||
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
|
||||
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
|
||||
try {
|
||||
new Run().run(is, os);
|
||||
try {
|
||||
new Run().run(is, os);
|
||||
} finally {
|
||||
is.close();
|
||||
os.close();
|
||||
}
|
||||
} finally {
|
||||
is.close();
|
||||
os.close();
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
private static class Run {
|
||||
|
|
|
|||
Loading…
Reference in New Issue