summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-02-28 15:41:50 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-06 16:22:14 +0100
commit4a27359e81d8283bb459f0710f97c53c31d4ced0 (patch)
treeef43175f3cb19e17d6c5ec807ccfb8d3a6b30054
parent048bf08399846342812b20e6844e2e8f4036eac3 (diff)
downloadvd_agent-4a27359e81d8283bb459f0710f97c53c31d4ced0.tar.gz
vd_agent-4a27359e81d8283bb459f0710f97c53c31d4ced0.tar.xz
vd_agent-4a27359e81d8283bb459f0710f97c53c31d4ced0.zip
vdagent: Don't try to reconnect when not daemonized
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--src/vdagent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdagent.c b/src/vdagent.c
index ba199de..0161c7a 100644
--- a/src/vdagent.c
+++ b/src/vdagent.c
@@ -261,7 +261,7 @@ reconnect:
vdagent_file_xfers_destroy(vdagent_file_xfers);
vdagent_x11_destroy(x11, client == NULL);
udscs_destroy_connection(&client);
- if (!quit)
+ if (!quit && do_daemonize)
goto reconnect;
return 0;