vdagentd: Close the virtio port when the active vdagent disconnects
vdagentd: Close the virtio port when the active vdagent disconnects

We cannot use agent mouse mode without the session vdagent process, as we
need to know the resolution the client is running at. So we should
close the virtio port when the active vdagent disconnects, so that the
spice-server switches back to server mouse mode.

We were not properly updating active_session_conn when compiled without
consolekit support, which causes us to not close the virtio port, this patch
fixes this.

Signed-off-by: Hans de Goede <9fa1be1a5b5729e4c6b404f34c9ce49ff4882fd8@redhat.com>

elmarco/vdagent-gtk,elmarco/vdagent-gtk,elmarco/vdagent-gtk