Skip to content

Commit

Permalink
Forward: if call forward backend failed, then return directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
chundonglinlin committed Feb 13, 2022
1 parent 931d19e commit 6458e37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1485,9 +1485,7 @@ srs_error_t SrsOriginHub::create_forwarders()
// create forward by backend
std::vector<std::string> urls;
if ((err = SrsHttpHooks::on_forward_backend(backend_url, req, urls)) != srs_success) {
// ignore
srs_trace("get backend failed, %s", srs_error_desc(err).c_str());
continue;
return srs_error_wrap(err, "get forward backend failed");
}

std::vector<std::string>::iterator it;
Expand Down

0 comments on commit 6458e37

Please sign in to comment.