summaryrefslogtreecommitdiffstats
path: root/ircxmpp.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-04-30 21:39:05 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-04-30 21:39:05 +0200
commit8cd7251b7f0da3f82b552b0cf737b6047f8f3a53 (patch)
treec317d896618d673cafbeb2533f0987b0ca5a33aa /ircxmpp.c
parent0.0.4 (diff)
downloadircxmpp-0.0.5.tar
ircxmpp-0.0.5.tar.gz
ircxmpp-0.0.5.tar.bz2
ircxmpp-0.0.5.tar.lz
ircxmpp-0.0.5.tar.xz
ircxmpp-0.0.5.tar.zst
ircxmpp-0.0.5.zip
Diffstat (limited to 'ircxmpp.c')
-rw-r--r--ircxmpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ircxmpp.c b/ircxmpp.c
index 302d164..a7b6a44 100644
--- a/ircxmpp.c
+++ b/ircxmpp.c
@@ -70,7 +70,7 @@ static void free_bridge (struct bridge * bridge, const char * razlog) {
if (bridge->conn)
xmpp_conn_release(bridge->conn); // graceful disconnect, what is that?
if (strcmp(razlog, "free_bridge_from_tdestroy"))
- tdelete(bridge, bridge->ircxmpp->bridges, bridge_compare);
+ tdelete(bridge, &bridge->ircxmpp->bridges, bridge_compare);
free(bridge->identifier);
for (size_t i = 0; i < bridge->messages_length; i++)
free(bridge->messages[i]);
@@ -775,7 +775,7 @@ int main (void) {
ircxmpp_run_once(handles[i]);
struct timespec ts = {
.tv_sec = 0,
- .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e8
+ .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e7
};
nanosleep(&ts, NULL);
}