summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/JackDriver.cpp2
-rw-r--r--src/server/PreProcessor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index e2a2d480..44f92dd8 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -178,7 +178,7 @@ JackDriver::deactivate()
if (_is_activated) {
_flag = true;
_is_activated = false;
- _sem.timed_wait(1000);
+ _sem.timed_wait(std::chrono::seconds(1));
for (auto& p : _ports) {
unregister_port(p);
diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp
index 11037d84..4efe88fe 100644
--- a/src/server/PreProcessor.cpp
+++ b/src/server/PreProcessor.cpp
@@ -181,7 +181,7 @@ PreProcessor::run()
Event* back = NULL;
while (!_exit_flag) {
- if (!_sem.timed_wait(1000)) {
+ if (!_sem.timed_wait(std::chrono::seconds(1))) {
continue;
}