diff options
author | Benoit Jacob <benoitjacob@google.com> | 2022-04-12 18:59:40 +0300 |
---|---|---|
committer | Benoit Jacob <benoitjacob@google.com> | 2022-04-12 19:06:54 +0300 |
commit | 8c3868e43b4f65e602dee19e40371c313b934e7d (patch) | |
tree | 445f4e5bec8cfe12b4543a9c2e768df062e4b24a /capture | |
parent | 9b15870991da9ebf7d4e2b808691c3ce91af9356 (diff) |
Make `disconnect` volatile as it's written by a signal handler.
Diffstat (limited to 'capture')
-rw-r--r-- | capture/src/capture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |