diff options
Diffstat (limited to 'occ_errors.cpp')
-rw-r--r-- | occ_errors.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/occ_errors.cpp b/occ_errors.cpp index ae66a62..ab7663a 100644 --- a/occ_errors.cpp +++ b/occ_errors.cpp @@ -56,15 +56,18 @@ void Error::registerCallBack() } // Starts to watch for errors -void Error::addWatch() +void Error::addWatch(bool poll) { if (!watching) { // Open the file openFile(); - // register the callback handler - registerCallBack(); + if (poll) + { + // register the callback handler + registerCallBack(); + } // Set we are watching the error watching = true; |