Use CRITICAL job priority class for long running dispatcher jobs
[strongswan.git] / src / libcharon / plugins / smp / smp.c
index 8fb59d3..58f98cf 100644 (file)
@@ -774,7 +774,8 @@ plugin_t *smp_plugin_create()
                return NULL;
        }
 
-       this->job = callback_job_create((callback_job_cb_t)dispatch, this, NULL, NULL);
+       this->job = callback_job_create_with_prio((callback_job_cb_t)dispatch,
+                                                                               this, NULL, NULL, JOB_PRIO_CRITICAL);
        lib->processor->queue_job(lib->processor, (job_t*)this->job);
 
        return &this->public.plugin;