Some more fixes.

This commit is contained in:
Eugene Vigdorchik
2012-04-03 11:49:41 +04:00
parent 4abefbd3b6
commit c4385adce0
4 changed files with 17 additions and 8 deletions
@@ -70,7 +70,12 @@ public class ForkMain {
Socket socket = new Socket(InetAddress.getByName(null), Integer.valueOf(args[0]));
final ObjectInputStream is = new ObjectInputStream(socket.getInputStream());
final ObjectOutputStream os = new ObjectOutputStream(socket.getOutputStream());
new Run().run(is, os);
try {
new Run().run(is, os);
} finally {
is.close();
os.close();
}
}
private static class Run {
boolean matches(Fingerprint f1, Fingerprint f2) {