]> cat aescling's git repositories - mastodon.git/commitdiff
Fix "cb is not a function" error in streaming API server (#16134)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 2 May 2021 12:30:26 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 12:30:26 +0000 (14:30 +0200)
Third argument of `ping` is the callback

Regression from #15932

streaming/index.js

index 0af80daadd23bbd44714309c8da08a48f3fcaf15..7bb645a1357042cf502e6ddd63f61d49fb4e03fe 100644 (file)
@@ -1062,7 +1062,7 @@ const startWorker = (workerId) => {
       }
 
       ws.isAlive = false;
-      ws.ping('', false, true);
+      ws.ping('', false);
     });
   }, 30000);