Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed Jun 18, 2022
1 parent 5201db4 commit 7a96668
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/internal/highway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ export function highwayUpload(this: Client, readable: stream.Readable, obj: High
if (buf.length >= len + 10) {
handleRspHeader(buf.slice(9, len + 9))
buf = buf.slice(len + 10)
} else {
break
}
}
} catch { }
} catch (err) {
this.logger.error(err)
}
})
socket.on("close", () => {
reject(new ApiRejection(ErrorCode.HighwayNetworkError, "上传遇到网络错误"))
Expand Down

0 comments on commit 7a96668

Please # to comment.