]> git.proxmox.com Git - pve-http-server.git/commit
WS: guard disconnect block check properly
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Dec 2021 09:55:34 +0000 (10:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Dec 2021 10:05:03 +0000 (11:05 +0100)
commit6277311e7136a7b972d526384edd3b72b9587fa0
treef10b40ca78c4aec1572e214858df3d21c7f49c81
parentd298a22cc220f99e26fa89df73c15eef057aa09c
WS: guard disconnect block check properly

if the WS gets disconnected without any data having been sent first,
wbuf (and thus `length $wbuf`) is undef. the actual length of the buffer
is not relevant here anyway, just the fact that it's non-empty - so
avoid the undef warning by dropping the unnecessary comparison.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/APIServer/AnyEvent.pm