diff options
Diffstat (limited to 'src/server/Engine.cpp')
-rw-r--r-- | src/server/Engine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp index 3e7ab4d0..f2957616 100644 --- a/src/server/Engine.cpp +++ b/src/server/Engine.cpp @@ -137,6 +137,10 @@ Engine::set_driver(SharedPtr<Driver> driver) SampleCount Engine::event_time() { + if (ThreadManager::single_threaded) { + return 0; + } + const SampleCount start = _direct_driver ? _process_context.start() : _driver->frame_time(); |