Skip to content

Commit

Permalink
Catch more general IOException and close RiakConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
russelldb committed Feb 14, 2012
1 parent 083294e commit f1546db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/basho/riak/pbc/KeySource.java
Expand Up @@ -85,7 +85,7 @@ private void get_next_response() throws IOException {

r = RPB.RpbListKeysResp.parseFrom(data);
i = 0;
} catch (RiakError e) {
} catch (IOException e) {
close();
throw e;
}
Expand Down
Expand Up @@ -91,7 +91,7 @@ private void get_next_response() throws IOException {
}
r = RPB.RpbMapRedResp.parseFrom(data);
is_given = false;
} catch (RiakError e) {
} catch (IOException e) {
close();
throw e;
}
Expand Down

0 comments on commit f1546db

Please sign in to comment.