From 8c3868e43b4f65e602dee19e40371c313b934e7d Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 12 Apr 2022 15:59:40 +0000 Subject: [PATCH] Make `disconnect` volatile as it's written by a signal handler. --- capture/src/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index ee126bdd..94afe036 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -25,7 +25,7 @@ #endif -bool disconnect = false; +volatile bool disconnect = false; void SigInt( int ) {