Skip to content

Commit

Permalink
reconnectを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Sep 2, 2023
1 parent 718749f commit f6e4568
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/repository/timeline_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,12 @@ class TimelineRepository extends FamilyNotifier<TimelineState, TabSetting> {
}

void reconnect() {
_socketController.reconnect();
try {
_socketController.reconnect();
} catch (e) {
startTimeline();
return;
}
ref.read(mainStreamRepositoryProvider(_tabSetting.account)).reconnect();
_reloadLatestNotes();
}
Expand Down

0 comments on commit f6e4568

Please sign in to comment.