Skip to content

Commit

Permalink
fix: channelを閉じる場所を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
koto623 committed Feb 23, 2024
1 parent e361217 commit 7719dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/where_child_bus_guardian/lib/util/api/guardian.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Future<GuardianLoginResponse> guardianLogin(
return res;
} catch (error) {
developer.log("Caught Error", error: error);
await channel.shutdown();
return Future.error(error);
} finally {
await channel.shutdown();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Future<PingResponse> serviceHealthCheck() async {
return res;
} catch (error) {
developer.log('Caught error: $error');
await channel.shutdown();
return Future.error(error);
} finally {
await channel.shutdown();
}
}

0 comments on commit 7719dbb

Please sign in to comment.