From 246b53f481dc26b37c095770ada75648a58a5684 Mon Sep 17 00:00:00 2001 From: Darshak Parikh Date: Sun, 29 Sep 2024 16:15:58 +0530 Subject: [PATCH] Fix send_async errors --- src/FavIcon.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FavIcon.vala b/src/FavIcon.vala index 25d29ace..ced252cd 100644 --- a/src/FavIcon.vala +++ b/src/FavIcon.vala @@ -288,7 +288,7 @@ public class FeedReader.FavIcon : GLib.Object } // try domainname/favicon.ico - GLib.Uri uri; + GLib.Uri uri = null; try { uri = GLib.Uri.parse(m_feed.getURL(), GLib.UriFlags.NONE); } catch (GLib.UriError e) { @@ -340,7 +340,7 @@ public class FeedReader.FavIcon : GLib.Object string html; try { - var bodyStream = yield Utils.getSession().send_async(message_html); + var bodyStream = yield Utils.getSession().send_async(message_html, 2, cancellable); html = (string)yield Utils.inputStreamToArray(bodyStream, cancellable); } catch (Error e) @@ -438,7 +438,7 @@ public class FeedReader.FavIcon : GLib.Object uint8[]? data; try { - var bodyStream = yield Utils.getSession().send_async(message, cancellable); + var bodyStream = yield Utils.getSession().send_async(message, 1, cancellable); data = yield Utils.inputStreamToArray(bodyStream, cancellable); } catch (Error e)