diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-13 22:49:29 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-14 09:50:39 +0200 |
commit | 1c4251052feb63adf6f54a1269cbedd546ff9797 (patch) | |
tree | 93f3ab6e8c50913ea8990d797f307e333d64f5da /src/Erebos/ICE/pjproject.c | |
parent | d24223e204bedfa4f0e57db55b039cffa9811357 (diff) |
Terminate ICE thread when server is stopped
Changelog: Improved handling of ICE connections
Diffstat (limited to 'src/Erebos/ICE/pjproject.c')
-rw-r--r-- | src/Erebos/ICE/pjproject.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Erebos/ICE/pjproject.c b/src/Erebos/ICE/pjproject.c index 54da58d..e9446fe 100644 --- a/src/Erebos/ICE/pjproject.c +++ b/src/Erebos/ICE/pjproject.c @@ -216,6 +216,13 @@ void ice_cfg_free( struct erebos_ice_cfg * ecfg ) free( ecfg ); } +void ice_cfg_stop_thread( struct erebos_ice_cfg * ecfg ) +{ + if( ! ecfg ) + return; + ecfg->exit = true; +} + pj_ice_strans * ice_create( const struct erebos_ice_cfg * ecfg, pj_ice_sess_role role, HsStablePtr sptr, HsStablePtr cb ) { |