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
This commit is contained in:
Michael Vetter
2020-04-17 10:05:09 +02:00
parent 00fc0e2e8d
commit 9be7d29f1b
4 changed files with 27 additions and 12 deletions

View File

@@ -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;