Add missing check for threads enabled
This commit is contained in:
parent
ac74389f4b
commit
cd9f40b7c0
@ -138,6 +138,10 @@ void IdentifierCompleter::AddCandidatesToDatabaseFromBufferAsync(
|
|||||||
std::string filetype,
|
std::string filetype,
|
||||||
std::string filepath )
|
std::string filepath )
|
||||||
{
|
{
|
||||||
|
// TODO: throw exception when threading is not enabled and this is called
|
||||||
|
if ( !threading_enabled_ )
|
||||||
|
return;
|
||||||
|
|
||||||
boost::function< void() > functor =
|
boost::function< void() > functor =
|
||||||
bind( &IdentifierCompleter::AddCandidatesToDatabaseFromBuffer,
|
bind( &IdentifierCompleter::AddCandidatesToDatabaseFromBuffer,
|
||||||
boost::ref( *this ),
|
boost::ref( *this ),
|
||||||
|
Loading…
Reference in New Issue
Block a user