about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-04-17 10:05:09 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-04-17 10:05:09 +0200
commit9be7d29f1b8ab55fd377beeb9a5d31a4b32bf416 (patch)
treed975e1a7e8c00ff31350766d619da2aa03cba188 /src/xmpp
parent00fc0e2e8d02d830e44b3c28973661d8e5411b7b (diff)
downloadprofani-tty-9be7d29f1b8ab55fd377beeb9a5d31a4b32bf416.tar.gz
Don't expose upload_processes
That's actually not good practise.
Realized this when checking for multiple symbol definition in issue
mentioned below.

Regards https://github.com/profanity-im/profanity/issues/1314
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 0559e10a..58e10e98 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2402,7 +2402,7 @@ _http_upload_response_id_handler(xmpp_stanza_t *const stanza, void *const userda
             if (get_url) xmpp_free(ctx, get_url);
 
             pthread_create(&(upload->worker), NULL, &http_file_put, upload);
-            upload_processes = g_slist_append(upload_processes, upload);
+            http_upload_add_upload(upload);
         } else {
             log_error("Invalid XML in HTTP Upload slot");
             return 1;