Commit 91438b65 authored by Max Kellermann's avatar Max Kellermann

output/Interface: the default Pause() implementation fails

Fixes regression from commit 31bad5f7: if Pause() returns true, the output thread is running a busy loop, causing 100% CPU usage, instead of just closing the output. Closes #105
parent 987c5059
...@@ -141,7 +141,10 @@ public: ...@@ -141,7 +141,10 @@ public:
* @return false on error (output will be closed by caller), * @return false on error (output will be closed by caller),
* true for continue to pause * true for continue to pause
*/ */
virtual bool Pause() noexcept { return true; } virtual bool Pause() noexcept {
/* fail because this method is not implemented */
return false;
}
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment