Skip to content

Commit

Permalink
Attemtpt to solve stephanenicolas#91.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanenicolas committed Jul 7, 2014
1 parent 40cca91 commit 6eb265f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ private <T> void addRequestListenerToListOfRequestListeners(final CachedSpiceReq
synchronized (mapRequestToLaunchToRequestListener) {
Set<RequestListener<?>> listeners = mapRequestToLaunchToRequestListener.get(cachedSpiceRequest);
if (listeners == null) {
listeners = new HashSet<RequestListener<?>>();
listeners = Collections.synchronizedSet(new HashSet<RequestListener<?>>());
this.mapRequestToLaunchToRequestListener.put(cachedSpiceRequest, listeners);
}
listeners.add(requestListener);
Expand Down

0 comments on commit 6eb265f

Please sign in to comment.