grpclb: minor cleanup, remove unnecessary try-catch

This commit is contained in:
ZHANG Dapeng 2019-02-05 12:40:55 -08:00 committed by GitHub
parent 182d277b1c
commit 2960708b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -589,14 +589,10 @@ final class GrpclbState {
}
closed = true;
cleanUp();
try {
if (error == null) {
lbRequestWriter.onCompleted();
} else {
lbRequestWriter.onError(error);
}
} catch (Exception e) {
// Don't care
if (error == null) {
lbRequestWriter.onCompleted();
} else {
lbRequestWriter.onError(error);
}
}