[pve-devel] [PATCH http-server 4/4] websocket_proxy: fix indentation

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Mar 6 11:20:30 CET 2020


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 PVE/APIServer/AnyEvent.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm
index bc2ec4d..8b049d4 100644
--- a/PVE/APIServer/AnyEvent.pm
+++ b/PVE/APIServer/AnyEvent.pm
@@ -507,9 +507,9 @@ sub websocket_proxy {
 		    } elsif ($opcode == 8) {
 			my $statuscode = unpack ("n", $payload);
 			print "websocket received close. status code: '$statuscode'\n" if $self->{debug};
-		    if ($reqstate->{proxyhdl}) {
-				$reqstate->{proxyhdl}->push_shutdown();
-		    }
+			if ($reqstate->{proxyhdl}) {
+			    $reqstate->{proxyhdl}->push_shutdown();
+			}
 			$hdl->push_shutdown();
 		    } elsif ($opcode == 9) {
 			# ping received, schedule pong
-- 
2.20.1





More information about the pve-devel mailing list