1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

cleanup OctoListener

This commit is contained in:
Chen-I Lim 2020-10-21 09:34:53 -07:00
parent 3ee92e570b
commit d7af819afc

View File

@ -53,6 +53,11 @@ class OctoListener {
ws.onmessage = (e) => {
Utils.log(`OctoListener websocket onmessage. blockId: ${blockId}, data: ${e.data}`)
if (ws !== this.ws) {
Utils.log(`Ignoring closed ws`)
return
}
try {
const message = JSON.parse(e.data)
switch (message.action) {