aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-02 09:04:49 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-02 09:04:49 -0500
commitaec450d2d14c9d3bb78ed161044cbfd517688ff6 (patch)
tree3a87edf280f71d2e956febc3d85dd9a166aabf5d
parente77e0b0daae45e56ce93b727f80af43f86d2f796 (diff)
downloadslskd-aec450d2d14c9d3bb78ed161044cbfd517688ff6.tar.gz
flush on dispose
-rw-r--r--src/slskd/Common/RateLimiter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Common/RateLimiter.cs b/src/slskd/Common/RateLimiter.cs
index af0e9870..a5d1ba45 100644
--- a/src/slskd/Common/RateLimiter.cs
+++ b/src/slskd/Common/RateLimiter.cs
@@ -84,6 +84,9 @@ namespace slskd
{
if (disposing)
{
+ // if an action is staged, invoke it to 'flush'
+ Staged?.Invoke();
+
Timer.Dispose();
}