processor: Flush pending jobs during cancel(), not destroy
authorMartin Willi <martin@revosec.ch>
Tue, 11 Feb 2014 14:41:49 +0000 (15:41 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:34 +0000 (14:13 +0200)
commit874e212f71b86a483445036096b29f0dd81b3ed3
tree34c5e43bfbd58c6e68f6088c8c6afe4f7e1a4463
parent9e93251397788b73728afcf44372127de7b26332
processor: Flush pending jobs during cancel(), not destroy

During shutdown, cancel queued jobs earlier to avoid having cleanup functions
accessing infrastructure not available anymore, for example watcher.
src/libstrongswan/processing/processor.c