Commit 61d09f7e authored by Andrea Aime's avatar Andrea Aime
Browse files

Java 6 compatibility

parent 1f486eda
......@@ -9,7 +9,6 @@ import java.awt.RenderingHints;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
......@@ -1991,7 +1990,7 @@ public class ResourcePool {
@Override
protected void dispose(String key, WebMapServer server) {
HTTPClient client = server.getHTTPClient();
if (client instanceof Closeable) {
if (client instanceof MultithreadedHttpClient) {
// dispose the client, and the connection pool hosted into it as a consequence
// the connection pool additionally holds a few threads that are also getting
// disposed with this call
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment