diff options
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index b3195fc4c..663de3b36 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -810,6 +810,11 @@ struct ast_threadpool *ast_threadpool_create(const char *name, return NULL; } + if (options->version != AST_THREADPOOL_OPTIONS_VERSION) { + ast_log(LOG_WARNING, "Incompatible version of threadpool options in use.\n"); + return NULL; + } + tps = ast_taskprocessor_create_with_listener(name, tps_listener); if (!tps) { |