1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
This commit is contained in:
chundonglinlin 2024-11-07 14:49:41 +08:00 committed by GitHub
commit fb5e36f723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -445,7 +445,10 @@ void SrsStatistic::on_disconnect(std::string id, srs_error_t err)
stream->nb_clients--; stream->nb_clients--;
vhost->nb_clients--; vhost->nb_clients--;
if (srs_error_code(err) != ERROR_SUCCESS) { // TODO: FIXME: Should filter the err.
int err_code = srs_error_code(err);
if (err_code != ERROR_SUCCESS && err_code != ERROR_SOCKET_READ && err_code != ERROR_SOCKET_WRITE
&& err_code != ERROR_SRT_IO) {
nb_errs_++; nb_errs_++;
} }