summaryrefslogtreecommitdiff
path: root/pjnath/src
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/src')
-rw-r--r--pjnath/src/pjnath/nat_detect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pjnath/src/pjnath/nat_detect.c b/pjnath/src/pjnath/nat_detect.c
index e6736ea3..364d89e3 100644
--- a/pjnath/src/pjnath/nat_detect.c
+++ b/pjnath/src/pjnath/nat_detect.c
@@ -830,6 +830,7 @@ static void on_sess_timer(pj_timer_heap_t *th,
pj_mutex_lock(sess->mutex);
pj_ioqueue_unregister(sess->key);
sess->key = NULL;
+ sess->sock = PJ_INVALID_SOCKET;
te->id = 0;
pj_mutex_unlock(sess->mutex);