GUACAMOLE-364: eliminate unnecessary local variable
This commit is contained in:
1 parent
beac46bff5
commit
2062f1ccc5
1 file changed
+1
-2
@@ -91,8 +91,7 @@ public class TunnelRequestService {
|
||||
private void notifyTunnelConnectListeners(UserContext userContext,
|
||||
Credentials credentials, GuacamoleTunnel tunnel) throws GuacamoleException {
|
||||
TunnelConnectEvent event = new TunnelConnectEvent(userContext, credentials, tunnel);
|
||||
boolean ok = listenerService.tunnelConnected(event);
|
||||
if (!ok) {
|
||||
if (!listenerService.tunnelConnected(event)) {
|
||||
try {
|
||||
tunnel.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user