mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
cleanup OctoListener
This commit is contained in:
parent
3ee92e570b
commit
d7af819afc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user