aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-22 11:51:22 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-22 11:51:22 +0000
commitffc5fd73e55f0534fdd1e96bb1e3ebaf5477f10b (patch)
tree5db5b17e2c7ce27203ceb9f8245180e576386246
parentca03b73be9448534dbdd2a35db65f01b9bc001b0 (diff)
downloadstrongswan-ffc5fd73e55f0534fdd1e96bb1e3ebaf5477f10b.tar.bz2
strongswan-ffc5fd73e55f0534fdd1e96bb1e3ebaf5477f10b.tar.xz
- added logging when destroying
-rw-r--r--Source/charon/receiver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/charon/receiver.c b/Source/charon/receiver.c
index eab6044b1..309f2de98 100644
--- a/Source/charon/receiver.c
+++ b/Source/charon/receiver.c
@@ -95,10 +95,12 @@ static void receiver_thread_function(private_receiver_t * this)
*/
static status_t destroy(private_receiver_t *this)
{
+ this->logger->log(this->logger, CONTROL | MORE, "Going to terminate receiver thread");
pthread_cancel(this->assigned_thread);
pthread_join(this->assigned_thread, NULL);
-
+ this->logger->log(this->logger, CONTROL | MORE, "Receiver thread terminated");
+
global_logger_manager->destroy_logger(global_logger_manager, this->logger);
allocator_free(this);