fix iteration bug when disposing pending events at shutdown

discovered by logging
This commit is contained in:
Bruno Windels 2021-02-23 19:04:25 +01:00
parent a8df30016b
commit c6c96a611a

View file

@ -205,7 +205,7 @@ export class SendQueue {
}
dispose() {
for (const pe in this._pendingEvents.array) {
for (const pe of this._pendingEvents) {
pe.dispose();
}
}