Skip to content

Commit

Permalink
fix(streams): retry on connection reset by peer (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Jan 16, 2024
1 parent e4b2ebe commit 9b9d6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Services/Network/Streams.vala
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public class Tuba.Streams : Object {
socket.message.connect (on_message);
} catch (Error e) {
warning (@"Error opening stream: $(e.message)");
if (e.matches (Quark.from_string ("g-tls-error-quark"), 3) || e.matches (Quark.from_string ("g-io-error-quark"), 44)) {
on_closed ();
}
}
});
return false;
Expand Down

0 comments on commit 9b9d6ef

Please sign in to comment.