From cb09e5ea2d10f3e6c7e54aaf9a275d28e18a1323 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 2 Aug 2023 16:37:35 +0100 Subject: [PATCH] ues catch, throw construct in clear_dirty --- lib/voicemeeter/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/voicemeeter/base.rb b/lib/voicemeeter/base.rb index 2899343..ac3b9f2 100644 --- a/lib/voicemeeter/base.rb +++ b/lib/voicemeeter/base.rb @@ -68,7 +68,8 @@ module Voicemeeter end def clear_dirty - while pdirty? || mdirty? + catch(:clear) do + loop { throw(:clear) unless pdirty? || mdirty? } end end