GabrielL/xbmc — comment on commit 2e75a737ae29eb0ba0b4e2b4c7168952a231f195
File: xbmc/video/windows/GUIWindowVideoBase.cpp line 1499
By AWilco:

Since we are now a Job in our own thread, can we not put a loop in and wait until we can write the database? This will make sure that the file eventually gets marked as watched.

while (!!g_settings.GetCurrentProfile().canWriteDatabases())
sleep(1000);