zapit.cpp: fix possible seqfault

This commit is contained in:
GetAway
2021-12-16 23:19:01 +01:00
parent 8e9a039db8
commit abb3bb1016

View File

@@ -1267,6 +1267,8 @@ void CZapit::Rezap(void)
{ {
if (currentMode & RECORD_MODE) if (currentMode & RECORD_MODE)
return; return;
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts)
return;
if(config.rezapTimeout > 0) if(config.rezapTimeout > 0)
sleep(config.rezapTimeout); sleep(config.rezapTimeout);
if(current_channel) if(current_channel)