Changeset 5170 for pjproject/trunk/pjnath/src/pjnath/turn_session.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/turn_session.c
r4606 r5170 1292 1292 const pj_stun_sockaddr_attr *mapped_attr; 1293 1293 pj_str_t s; 1294 pj_time_val timeout;1295 1294 1296 1295 /* Must have LIFETIME attribute */ … … 1397 1396 /* Start keep-alive timer once allocation succeeds */ 1398 1397 if (sess->state < PJ_TURN_STATE_DEALLOCATING) { 1398 pj_time_val timeout; 1399 1399 timeout.sec = sess->ka_interval; 1400 1400 timeout.msec = 0; … … 1772 1772 1773 1773 if (bind_channel) { 1774 pj_uint32_t hval = 0;1774 pj_uint32_t hval2 = 0; 1775 1775 /* Register by channel number */ 1776 1776 pj_assert(ch->num != PJ_TURN_INVALID_CHANNEL && ch->bound); 1777 1777 1778 1778 if (pj_hash_get(sess->ch_table, &ch->num, 1779 sizeof(ch->num), &hval )==0) {1779 sizeof(ch->num), &hval2)==0) { 1780 1780 pj_hash_set(sess->pool, sess->ch_table, &ch->num, 1781 sizeof(ch->num), hval , ch);1781 sizeof(ch->num), hval2, ch); 1782 1782 } 1783 1783 }
Note: See TracChangeset
for help on using the changeset viewer.