1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

notify kafka when client close

This commit is contained in:
winlin 2015-10-23 14:36:55 +08:00
parent 71451878c9
commit d2ca51ac50
3 changed files with 38 additions and 4 deletions

View file

@ -1555,6 +1555,13 @@ int SrsRtmpConn::on_disconnect()
int ret = ERROR_SUCCESS;
http_hooks_on_close();
#ifdef SRS_AUTO_KAFKA
if ((ret = kafka->on_close(srs_id())) != ERROR_SUCCESS) {
srs_error("notify kafka failed. ret=%d", ret);
return ret;
}
#endif
// TODO: implements it.