diago icon indicating copy to clipboard operation
diago copied to clipboard

Implicit media closing on BYE (hangup)

Open emiago opened this issue 11 months ago • 1 comments

It is noticed that currently you are required to handle media in seperate goroutine in order to detect hangup.

This leads into lot of additional goroutines.

Still in some cases you want to handle hangup explicitly, or we need to have a way to register OnHangup where media stack can close it self.

This will probably fix lot of issues, but it could lead also double closing, as it iss needed to close always when caller stops processing call.

emiago avatar Dec 31 '24 12:12 emiago

FYI was default behavior for server but not for client

emiago avatar Jan 01 '25 14:01 emiago