aboutsummaryrefslogtreecommitdiffhomepage
path: root/autoload.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-03-23 12:31:22 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-03-23 12:31:22 -0700
commit01026c137f7abe9364be79477dc07c53ce35345e (patch)
tree9c74d00952dd23833272ab0bcce737ec1e690e97 /autoload.cpp
parent7aac3db55cdf84e5d2f8e194ee01c38a6694550b (diff)
Don't evict autoloaded functions from background threads
Fixes a bug where generating a lot of autoloaded functions from syntax highlighting would result in evicting nodes on background threads, resulting in a thread error. Fixes #1989
Diffstat (limited to 'autoload.cpp')
-rw-r--r--autoload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload.cpp b/autoload.cpp
index 165afb39..c883f8bf 100644
--- a/autoload.cpp
+++ b/autoload.cpp
@@ -64,7 +64,7 @@ void autoload_t::node_was_evicted(autoload_function_t *node)
ASSERT_IS_MAIN_THREAD();
// Tell ourselves that the command was removed if it was loaded
- if (! node->is_loaded)
+ if (node->is_loaded)
this->command_removed(node->key);
delete node;
}