Skip to content

Commit

Permalink
Merge pull request #191 from GreenTeaProgrammers/fix/frontend/guardia…
Browse files Browse the repository at this point in the history
…n/close-cahnnel

fix: channelを閉じる場所を修正
  • Loading branch information
koto623 authored Feb 23, 2024
2 parents e361217 + 7719dbb commit a968844
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 a968844

Please sign in to comment.