Changeset 5380
- Timestamp:
- Jul 13, 2016 9:57:26 AM (8 years ago)
- Location:
- pjproject/trunk/pjnath/src/pjnath
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/turn_session.c
r5349 r5380 785 785 * let the application do it if it wants to. 786 786 */ 787 set_state(sess, PJ_TURN_STATE_RESOLVED); 787 /* Set state back to RESOLVED may cause infinite loop (see #1942). */ 788 //set_state(sess, PJ_TURN_STATE_RESOLVED); 788 789 } 789 790 … … 1750 1751 /* Run pending allocation */ 1751 1752 if (sess->pending_alloc) { 1752 pj_turn_session_alloc(sess, NULL); 1753 pj_status_t status; 1754 status = pj_turn_session_alloc(sess, NULL); 1755 if (status != PJ_SUCCESS) 1756 on_session_fail(sess, PJ_STUN_ALLOCATE_METHOD, status, NULL); 1753 1757 } 1754 1758 } -
pjproject/trunk/pjnath/src/pjnath/turn_sock.c
r5375 r5380 735 735 if (turn_sock == NULL) { 736 736 /* We've been destroyed */ 737 return;738 }739 740 if (old_state == PJ_TURN_STATE_ALLOCATING &&741 new_state == PJ_TURN_STATE_RESOLVED)742 {743 /* TURN session won't destroy itself upon allocation failure, it will744 * just revert back TURN state to PJ_TURN_STATE_RESOLVED. So, let's745 * avoid infinite loop here (see ticket #1942).746 */747 737 return; 748 738 }
Note: See TracChangeset
for help on using the changeset viewer.