mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #913, refine the error mechanism
This commit is contained in:
parent
bb200b5d2d
commit
93710c7489
11 changed files with 38 additions and 31 deletions
|
@ -353,6 +353,10 @@ int srs_initialize_kafka()
|
|||
void srs_dispose_kafka()
|
||||
{
|
||||
SrsKafkaProducer* kafka = dynamic_cast<SrsKafkaProducer*>(_srs_kafka);
|
||||
if (!kafka) {
|
||||
return;
|
||||
}
|
||||
|
||||
kafka->stop();
|
||||
|
||||
srs_freep(kafka);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue