fixed possible deadlock situation on incorrect localIP/raddr

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@515 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 367db9aca2
commit c461a95986

@ -313,9 +313,14 @@ void AmSession::negotiate(const string& sdp_body,
}
lockAudio();
rtp_str.setLocalIP(AmConfig::LocalIP);
rtp_str.setPassiveMode(passive_mode);
rtp_str.setRAddr(r_host, r_port);
try {
rtp_str.setLocalIP(AmConfig::LocalIP);
rtp_str.setPassiveMode(passive_mode);
rtp_str.setRAddr(r_host, r_port);
} catch (...) {
unlockAudio();
throw;
}
unlockAudio();
if(sdp_reply)

Loading…
Cancel
Save