git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5197 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-05-17 14:29:49 +00:00
parent 4156571ea6
commit ca03e87eed

View File

@ -334,7 +334,9 @@ static switch_status_t woomera_kill_channel(switch_core_session_t *session, int
{
const char p = 0;
switch_size_t len = sizeof(p);
switch_socket_sendto(tech_pvt->udp_socket, tech_pvt->udpwrite, 0, &p, &len);
if (tech_pvt->udp_socket && tech_pvt->udpwrite) {
switch_socket_sendto(tech_pvt->udp_socket, tech_pvt->udpwrite, 0, &p, &len);
}
}
break;
}