stream: support cancellation of stream service callback
authorMartin Willi <martin@revosec.ch>
Fri, 28 Jun 2013 12:33:03 +0000 (14:33 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 14:00:28 +0000 (16:00 +0200)
src/libstrongswan/networking/streams/stream_service.c

index 34d45a0..7eaca86 100644 (file)
@@ -156,8 +156,9 @@ static bool watch(private_stream_service_t *this, int fd, watcher_event_t event)
                this->mutex->unlock(this->mutex);
 
                lib->processor->queue_job(lib->processor,
-                               (job_t*)callback_job_create_with_prio((void*)accept_async, data,
-                                                       (void*)destroy_async_data, NULL, this->prio));
+                       (job_t*)callback_job_create_with_prio((void*)accept_async, data,
+                               (void*)destroy_async_data, (callback_job_cancel_t)return_false,
+                               this->prio));
        }
        else
        {