Merge pull request #785 from xetorthio/jdk8

Fix tests in JDK8
This commit is contained in:
Marcos Nils
2014-11-10 14:04:09 -03:00
2 changed files with 2 additions and 1 deletions

View File

@@ -3,5 +3,6 @@ jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
install: make travis-install
script: make test

View File

@@ -155,8 +155,8 @@ public class Connection implements Closeable {
if (isConnected()) {
try {
inputStream.close();
outputStream.close();
if (!socket.isClosed()) {
outputStream.close();
socket.close();
}
} catch (IOException ex) {