fix: if indexOf return 0 will if will be falsy

This commit is contained in:
Weixie Cui
2026-02-20 14:00:08 +08:00
parent ce57b59dab
commit 3a74946f63

View File

@@ -472,7 +472,7 @@ export class ServerGrpc extends Server<never, never> {
.toLowerCase()
.indexOf('cancelled');
if (isCancelledError) {
if (isCancelledError !== -1) {
call.end();
return;
}