Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/javascript/src/main/webapp/javascript/atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,8 @@
atmosphere.util.warn("Websocket closed, reason: " + reason + ' - wasClean: ' + message.wasClean);
}

_invokeClose(webSocketOpened);

if (_response.closedByClientTimeout || (_request.handleOnlineOffline && offline)) {
// IFF online/offline events are handled and we happen to be offline, we stop all reconnect attempts and
// resume them in the "online" event (if we get here in that case, something else went wrong as the
Expand All @@ -1582,8 +1584,6 @@
return;
}

_invokeClose(webSocketOpened);

_response.state = 'closed';

if (_abortingConnection) {
Expand Down