diff options
author | Martin Willi <martin@revosec.ch> | 2013-06-28 14:33:03 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-07-18 16:00:28 +0200 |
commit | 1d1ef9e7ca7116bbc3e68361ef70772016b50bc5 (patch) | |
tree | a079b194b4f147ac5395ee1a3dc37d0a9e5e681d /src/libstrongswan/networking/streams/stream_service.c | |
parent | 047a1906005dbffa1e4961b9a070183834495241 (diff) | |
download | strongswan-1d1ef9e7ca7116bbc3e68361ef70772016b50bc5.tar.bz2 strongswan-1d1ef9e7ca7116bbc3e68361ef70772016b50bc5.tar.xz |
stream: support cancellation of stream service callback
Diffstat (limited to 'src/libstrongswan/networking/streams/stream_service.c')
-rw-r--r-- | src/libstrongswan/networking/streams/stream_service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/networking/streams/stream_service.c b/src/libstrongswan/networking/streams/stream_service.c index 34d45a067..7eaca86be 100644 --- a/src/libstrongswan/networking/streams/stream_service.c +++ b/src/libstrongswan/networking/streams/stream_service.c @@ -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 { |