Skip to content

Commit 1f83fe5

Browse files
author
Robert McNamara
committed
Metadata: Don't start a new video scan if another is running.
Prevents all sorts of nasty potential consequences if someone decides to hammer on the backend with scan_videos requests.
1 parent 495cd72 commit 1f83fe5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mythtv/libs/libmythmetadata/metadatafactory.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ void MetadataFactory::Lookup(MetadataLookup *lookup)
166166

167167
void MetadataFactory::VideoScan()
168168
{
169+
if (IsRunning())
170+
return;
171+
169172
m_scanning = true;
170173

171174
m_videoscanner->SetDirs(GetVideoDirs());

0 commit comments

Comments
 (0)