Skip to content

Commit

Permalink
fix: still monitor when code equal UNKNOW_CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Oct 25, 2024
1 parent 0ce08d4 commit 8f833a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function OperationBar(props: OperationBarProps) {
return
}

if (code === CRAWLER_ERROR_CODE.NOT_URLS) {
if (code === CRAWLER_ERROR_CODE.NOT_URLS || code === UNKNOWN_CODE) {
timer.current && clearTimeout(timer.current)
timer.current = setTimeout(() => {
handleStartRecord(false)
Expand All @@ -121,7 +121,7 @@ export default function OperationBar(props: OperationBarProps) {
}

// 这里只会处理获取直播地址失败的情况,录制失败的处理在StreamConfigList组件中
if (Object.values(FFMPEG_ERROR_CODE).includes(code) || code === UNKNOWN_CODE) {
if (Object.values(FFMPEG_ERROR_CODE).includes(code)) {
return
}

Expand Down

0 comments on commit 8f833a3

Please sign in to comment.