cleanUp method
Implementation
Future<void> cleanUp() async {
try {
for (final stream in streams) {
await stream.dispose();
}
streams.clear();
} catch (e, s) {
Logs().e('[VOIP] cleaning up streams failed', e, s);
}
try {
if (pc != null) {
await pc!.close();
await pc!.dispose();
}
} catch (e, s) {
Logs().e('[VOIP] removing pc failed', e, s);
}
}