diff --git a/desktop/src/main/java/bisq/desktop/main/account/content/notifications/qr/ImageCaptureReader.java b/desktop/src/main/java/bisq/desktop/main/account/content/notifications/qr/ImageCaptureReader.java index f667822d198..b5f46d0ee04 100644 --- a/desktop/src/main/java/bisq/desktop/main/account/content/notifications/qr/ImageCaptureReader.java +++ b/desktop/src/main/java/bisq/desktop/main/account/content/notifications/qr/ImageCaptureReader.java @@ -120,6 +120,11 @@ public void run() { } catch (InterruptedException e) { Thread.currentThread().interrupt(); } finally { + try { + frameGrabber.close(); + } catch (FrameGrabber.Exception ignored) { + // Don't care if this throws an exception at this point + } close(); } } @@ -127,10 +132,5 @@ public void run() { @Override public void close() { isRunning = false; - try { - frameGrabber.close(); - } catch (FrameGrabber.Exception ignored) { - // Don't care if this throws an exception at this point - } } }