Skip to content

Commit

Permalink
Simplified JBActor.syncProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
laforge49 committed Mar 6, 2012
1 parent a46d8bf commit e0dac9a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main/java/org/agilewiki/jactor/bind/JBActor.java
Expand Up @@ -688,17 +688,7 @@ final private void syncProcess(final Object request,
return;
}
try {
RP rp1 = new RP() {
@Override
public void processResponse(Object response) throws Exception {
try {
rp.processResponse(response);
} catch (Exception e) {
throw new TransparentException(e);
}
}
};
processRequest(request, rp1, binding);
processRequest(request, rp, binding);
} catch (TransparentException t) {
final Exception e = (Exception) t.getCause();
requestSource.setExceptionHandler(sourceExceptionHandler);
Expand Down

0 comments on commit e0dac9a

Please sign in to comment.