Skip to content

Commit

Permalink
fix error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
secpro committed Dec 20, 2020
1 parent 42e746d commit 4200266
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion handler/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function MessageHandler(message) {
this.acClient.wsStart();
}

this.acClient.on("error", () => {
this.acClient.on("decode-error", () => {
this.close();
})

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "node-dev app.js"
},
"dependencies": {
"ac-danmu": "^0.4.3",
"ac-danmu": "^0.4.4",
"connect-history-api-fallback": "^1.6.0",
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
Expand Down

0 comments on commit 4200266

Please sign in to comment.