Skip to content

Commit

Permalink
reader_interrupted() should only be called on the main thread. fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKanis committed Jan 22, 2013
1 parent 970d05d commit c582787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wildcard.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit c582787

Please sign in to comment.