mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Fix SIGSEGV encountered on macOS
When attempting to close the frame grabber from a separate thread, the application would crash due to a SIGSEGV.
This commit is contained in:
parent
e6e9608473
commit
5f3f692b2f
1 changed files with 5 additions and 5 deletions
|
@ -120,6 +120,11 @@ public class ImageCaptureReader<T> extends Thread implements AutoCloseable {
|
|||
} 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 class ImageCaptureReader<T> extends Thread implements AutoCloseable {
|
|||
@Override
|
||||
public void close() {
|
||||
isRunning = false;
|
||||
try {
|
||||
frameGrabber.close();
|
||||
} catch (FrameGrabber.Exception ignored) {
|
||||
// Don't care if this throws an exception at this point
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue