Skip to content

Commit e494676

Browse files
committed
sessions keys toList added
1 parent 1622e27 commit e494676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/ua.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class UA extends EventManager {
317317
int num_sessions = _sessions.length;
318318

319319
// Run _terminate_ on every Session.
320-
_sessions.forEach((String? key, _) {
320+
_sessions.keys.toList().forEach((String? key, _) {
321321
if (_sessions.containsKey(key)) {
322322
logger.d('closing session $key');
323323
try {

0 commit comments

Comments
 (0)