[PATCH spice-gtk 4/5] webdav: remove client on empty message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Message with no data from spice-webdav daemon means
the client disconnected.

In this case, the client connection to phodav
should be closed as well.

This can happen e.g. when file transfer gets cancelled.

Signed-off-by: Jakub Janků <jjanku@xxxxxxxxxx>
---
 src/channel-webdav.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/channel-webdav.c b/src/channel-webdav.c
index ea287f1..34d88a9 100644
--- a/src/channel-webdav.c
+++ b/src/channel-webdav.c
@@ -341,8 +341,8 @@ static void demux_to_client(Client *client)
                                         c->cancellable, demux_to_client_cb, client);
         return;
     } else {
-        /* Nothing to write */
-        demux_to_client_finish(client, FALSE);
+        /* Client disconnected */
+        demux_to_client_finish(client, TRUE);
     }
 #endif
 }
-- 
2.21.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]