mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
daemon: stream: Close stream on send failure
This is the only place in daemon/stream.c that sets 'stream->closed = true' but neglects to actually abort the stream and remove the callback, which seems wrong.
This commit is contained in:
parent
c48db92fbd
commit
e7407872a4
@ -539,6 +539,9 @@ daemonStreamHandleWriteData(virNetServerClientPtr client,
|
||||
|
||||
VIR_INFO("Stream send failed");
|
||||
stream->closed = true;
|
||||
virStreamEventRemoveCallback(stream->st);
|
||||
virStreamAbort(stream->st);
|
||||
|
||||
return virNetServerProgramSendReplyError(stream->prog,
|
||||
client,
|
||||
msg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user