diff --git a/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java b/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java index 182e905..a62326e 100644 --- a/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java +++ b/src/main/java/net/sourceforge/plantuml/servlet/UmlDiagramService.java @@ -24,6 +24,7 @@ package net.sourceforge.plantuml.servlet; import java.io.IOException; +import javax.imageio.IIOException; import java.net.URLDecoder; import javax.servlet.ServletException; @@ -70,7 +71,7 @@ public abstract class UmlDiagramService extends HttpServlet { DiagramResponse dr = new DiagramResponse( response, getOutputFormat()); try { dr.sendDiagram(uml); - } catch (IOException ioe) { + } catch (IIOException iioe) { // Browser has closed the connection, do nothing } dr = null;