Improved handling of no tunnel.

This commit is contained in:
Michael Jumper
2012-03-24 22:19:24 -07:00
parent 36f4d68991
commit aa7c16f67d

View File

@@ -148,14 +148,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
// Failed to connect
else {
logger.info("Connection from {} failed.", request.getRemoteAddr());
try {
// Send error to client
response.sendError(HttpServletResponse.SC_NOT_FOUND);
}
catch (IOException e) {
throw new GuacamoleServerException(e);
}
throw new GuacamoleResourceNotFoundException("No tunnel created.");
}
}