fix(protocol): omit unused timeout on shared OIDB sends

Callers that assert the exact send arguments were seeing a spare
undefined timeout after envelope send moved onto the shared helper.
This commit is contained in:
DrSmoothl
2026-09-13 20:31:48 +08:00
parent 95d4831da8
commit 445aac8638
+3 -1
View File
@@ -140,7 +140,9 @@ export async function invokeOidb<TCtx extends OidbSender, TReq, TResp, TParams,
? spec.wireName(command, subCommand)
: `OidbSvcTrpcTcp.0x${command.toString(16)}_${subCommand}`;
const result = await ctx.sendRawPacket(wireName, reqBytes, timeoutMs);
const result = timeoutMs === undefined
? await ctx.sendRawPacket(wireName, reqBytes)
: await ctx.sendRawPacket(wireName, reqBytes, timeoutMs);
if (!result.gotResponse) throw new Error(result.errorMessage || 'no response');
if (!result.success) {