From 29e48e3e550fd8eec79be50c592850dec396f1ba Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 9 Jan 2023 18:20:49 +0100 Subject: Fix reconnection This was not possible because gui.c did not reset the socket filedescriptor to the default value. --- gui.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-70-g09d2