When using libnice broken connection is not being detected. After some discussion on Discord Paulo found out that connectivity checks are disabled by default in libnice.
To reproduce the issue:
Complie libdatachannel with libnice instead of libjuice.
Launch a WebRTC-compatible web browser.
Run examples/media-send and using the instructions, get the webcam feed into the browser.
When using libnice broken connection is not being detected. After some discussion on Discord Paulo found out that connectivity checks are disabled by default in libnice.
To reproduce the issue: