Improved handling of no tunnel.
This commit is contained in:
1 parent
36f4d68991
commit
aa7c16f67d
1 file changed
+1
-8
+1
-8
@@ -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.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user