Skip to content

Commit

Permalink
Fix send_async errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dar5hak committed Sep 29, 2024
1 parent 4c8ad94 commit 246b53f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FavIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 246b53f

Please sign in to comment.