mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-364: eliminate unnecessary local variable
This commit is contained in:
@@ -91,8 +91,7 @@ public class TunnelRequestService {
|
|||||||
private void notifyTunnelConnectListeners(UserContext userContext,
|
private void notifyTunnelConnectListeners(UserContext userContext,
|
||||||
Credentials credentials, GuacamoleTunnel tunnel) throws GuacamoleException {
|
Credentials credentials, GuacamoleTunnel tunnel) throws GuacamoleException {
|
||||||
TunnelConnectEvent event = new TunnelConnectEvent(userContext, credentials, tunnel);
|
TunnelConnectEvent event = new TunnelConnectEvent(userContext, credentials, tunnel);
|
||||||
boolean ok = listenerService.tunnelConnected(event);
|
if (!listenerService.tunnelConnected(event)) {
|
||||||
if (!ok) {
|
|
||||||
try {
|
try {
|
||||||
tunnel.close();
|
tunnel.close();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user