We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ba07a commit 368bc54Copy full SHA for 368bc54
assets/js/phoenix/socket.js
@@ -523,7 +523,7 @@ export default class Socket {
523
}
524
525
onConnClose(event){
526
- this.conn.onclose = () => {} // noop to prevent recursive calls in teardown
+ if(this.conn) this.conn.onclose = () => {} // noop to prevent recursive calls in teardown
527
let closeCode = event && event.code
528
if(this.hasLogger()) this.log("transport", "close", event)
529
this.triggerChanError()
0 commit comments