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
|
// Failed to connect
|
||||||
else {
|
else {
|
||||||
logger.info("Connection from {} failed.", request.getRemoteAddr());
|
logger.info("Connection from {} failed.", request.getRemoteAddr());
|
||||||
|
throw new GuacamoleResourceNotFoundException("No tunnel created.");
|
||||||
try {
|
|
||||||
// Send error to client
|
|
||||||
response.sendError(HttpServletResponse.SC_NOT_FOUND);
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
throw new GuacamoleServerException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user