no Closable for socket until Java 7

fixes #30
This commit is contained in:
Hannes Janetzek 2014-01-28 05:02:24 +01:00
parent e300664a28
commit a19a82cf6e

View File

@ -27,7 +27,6 @@ import java.net.URL;
import org.oscim.core.Tile;
import org.oscim.utils.ArrayUtils;
import org.oscim.utils.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -362,7 +361,10 @@ public class LwHttp {
if (mSocket == null)
return;
IOUtils.closeQuietly(mSocket);
try {
mSocket.close();
} catch (IOException e) {
}
mSocket = null;
mCommandStream = null;
mResponseStream = null;