Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16124)

Issue 3189041: remove callId, not serviceId, from pendingCalls

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by sgk1
Modified:
13 years, 3 months ago
Reviewers:
kenton
Visibility:
Public.

Description

Implementing capnproto in Python turned up this seeming bug in the Java implementation. We're adding DoneCallback instances to pendingCalls by callId, but after we receive the response we remove the entry corresponding to the serviceId.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M java/Connection.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2
sgk1
13 years, 5 months ago (2010-11-18 00:44:27 UTC) #1
kenton
13 years, 3 months ago (2011-01-23 22:37:31 UTC) #2
LGTM, submitted

On Wed, Nov 17, 2010 at 4:44 PM, <sgk@google.com> wrote:

> Reviewers: kenton,
>
> Description:
> Implementing capnproto in Python turned up this seeming bug in the Java
> implementation.  We're adding DoneCallback instances to pendingCalls by
> callId, but after we receive the response we remove the entry
> corresponding to the serviceId.
>
> Please review this at http://codereview.appspot.com/3189041/
>
> Affected files:
>  M java/Connection.java
>
>
> Index: java/Connection.java
> ===================================================================
> --- a/java/Connection.java
> +++ b/java/Connection.java
> @@ -475,7 +475,7 @@
>         }
>       } finally {
>         synchronized (pendingCalls) {
> -          pendingCalls.remove(serviceId);
> +          pendingCalls.remove(callId);
>         }
>       }
>
>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b