Skip to content

Commit

Permalink
Fix for #537 AtmosphereResource Initial Suspended's uuid is null when…
Browse files Browse the repository at this point in the history
… using streaming + POST
  • Loading branch information
jfarcand committed Jul 27, 2012
1 parent 3723047 commit 4e8b4fa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void onRequest(AtmosphereResource resource) throws IOException {
resource.addEventListener(new WebSocketEventListenerAdapter() {
@Override
public void onDisconnect(WebSocketEvent event) {
uuid.set((String) event.webSocket().resource().getRequest().getAttribute(FrameworkConfig.WEBSOCKET_ATMOSPHERE_RESOURCE));
uuid.set((String) event.webSocket().resource().getRequest().getAttribute(ApplicationConfig.SUSPENDED_ATMOSPHERE_RESOURCE_UUID));
}
});
}
Expand Down Expand Up @@ -200,7 +200,7 @@ public void onRequest(AtmosphereResource resource) throws IOException {
resource.addEventListener(new WebSocketEventListenerAdapter() {
@Override
public void onClose(WebSocketEvent event) {
uuid.set((String) event.webSocket().resource().getRequest().getAttribute(FrameworkConfig.WEBSOCKET_ATMOSPHERE_RESOURCE));
uuid.set((String) event.webSocket().resource().getRequest().getAttribute(ApplicationConfig.SUSPENDED_ATMOSPHERE_RESOURCE_UUID));
}
});
}
Expand Down

0 comments on commit 4e8b4fa

Please sign in to comment.