summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-01-09 18:20:49 +0100
committerxengineering <me@xengineering.eu>2023-01-09 18:20:49 +0100
commit29e48e3e550fd8eec79be50c592850dec396f1ba (patch)
tree00f5aa5d8affcf7417e8c1b081fe613334b335c8
parentd78a5ac02ea35399101fb53d12a25f96be4c112d (diff)
downloadlimox-29e48e3e550fd8eec79be50c592850dec396f1ba.tar
limox-29e48e3e550fd8eec79be50c592850dec396f1ba.tar.zst
limox-29e48e3e550fd8eec79be50c592850dec396f1ba.zip
Fix reconnection
This was not possible because gui.c did not reset the socket filedescriptor to the default value.
-rw-r--r--gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui.c b/gui.c
index 66ce806..39e2b9a 100644
--- a/gui.c
+++ b/gui.c
@@ -68,6 +68,7 @@ void gui_run(void) {
xmpp_fd = xmpp_connect();
} else {
close(xmpp_fd);
+ xmpp_fd = -1;
printf("Closed XMPP connection.\n");
}
break;