mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of forward, erase msgs when error
This commit is contained in:
parent
89c0170850
commit
86b1f3349a
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,10 @@ int SrsForwarder::forward()
|
|||
ret = client->send_message(msg);
|
||||
if (ret != ERROR_SUCCESS) {
|
||||
srs_error("forwarder send message to server failed. ret=%d", ret);
|
||||
|
||||
// convert the index to count when error.
|
||||
i++;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue