Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Aug 17, 2017
1 parent 0fac512 commit 77802c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const inProgress = (hub, tick) => {
}

const out = t => {
if (t.socket.CLOSED) {
if (!t.socket.send) {
t.set({ connected: false })
} else {
t.socket.send(JSON.stringify(t.inProgress))
Expand All @@ -191,7 +191,7 @@ const sendSubscriptions = (socket, subs, hub) => {
}
const payload = []
payload[1] = { s: subs, m }
if (socket.CLOSED) {
if (!socket.send) {
hub.set({ connected: false })
} else {
socket.send(JSON.stringify(payload))
Expand Down

0 comments on commit 77802c9

Please sign in to comment.