mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 10:35:21 +02:00
Fixed stall
This commit is contained in:
@ -20,15 +20,17 @@ namespace dsp {
|
||||
if (running) {
|
||||
return;
|
||||
}
|
||||
running = true;
|
||||
doStart();
|
||||
}
|
||||
|
||||
virtual void stop() {
|
||||
std::lock_guard<std::mutex> lck(ctrlMtx);
|
||||
if (!running && !tempStopped) {
|
||||
if (!running) {
|
||||
return;
|
||||
}
|
||||
doStop();
|
||||
running = false;
|
||||
}
|
||||
|
||||
virtual int calcOutSize(int inSize) { return inSize; }
|
||||
@ -67,7 +69,6 @@ namespace dsp {
|
||||
}
|
||||
|
||||
virtual void doStart() {
|
||||
running = true;
|
||||
workerThread = std::thread(&generic_block::workerLoop, this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user