vscclient: do not add a socket watch if there is not data to send
commitfa88afa51c7db927b3dd6c2f7878c23e53441de6
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 1 Dec 2013 21:23:35 +0000 (1 22:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2013 09:12:19 +0000 (16 10:12 +0100)
tree54239df013b2182ed3733d2f4253dddeab0250d9
parentf1d3e586f069e17f83b669842bc02d60d509daca
vscclient: do not add a socket watch if there is not data to send

Fixes the following error:
** (process:780): CRITICAL **: do_socket_send: assertion
`socket_to_send->len != 0' failed

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
libcacard/vscclient.c