reader_interrupted() should only be called on the main thread. fixes #537

This commit is contained in:
Jan Kanis 2013-01-22 10:27:14 +01:00
parent 970d05df39
commit c58278758c

View file

@ -728,7 +728,7 @@ static int wildcard_expand_internal(const wchar_t *wc,
// debug( 3, L"WILDCARD_EXPAND %ls in %ls", wc, base_dir );
if (reader_interrupted())
if (is_main_thread() && reader_interrupted())
{
return -1;
}