mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue