Closed vnayar closed 6 months ago
sorry I forgot to merge this, it seems fine. Would you be able to add a quick unit test though
sorry I forgot to merge this, it seems fine. Would you be able to add a quick unit test though
I couldn't quite figure out a way of making a true unit-test, due to the explicit dependency on SessionImpl
, but I added a small entry to integration-tests instead.
The std.algorithm.remove() method does not modify in-place an array, which causes 'activeSessions' to accumulate entries and never remove them.
See https://dlang.org/library/std/algorithm/mutation/remove.html