var scope masking.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10109 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-22 14:08:24 +00:00
parent a5089f3db8
commit 3906afe4d1
1 changed files with 4 additions and 4 deletions

View File

@ -1297,13 +1297,13 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
switch_thread_rwlock_wrlock(listener->rwlock); switch_thread_rwlock_wrlock(listener->rwlock);
if (listener->sock) { if (listener->sock) {
char buf[512] = ""; char disco_buf[512] = "";
const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n"; const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
int mlen = strlen(message); int mlen = strlen(message);
switch_snprintf(buf, sizeof(buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen); switch_snprintf(disco_buf, sizeof(disco_buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen);
len = strlen(buf); len = strlen(disco_buf);
switch_socket_send(listener->sock, buf, &len); switch_socket_send(listener->sock, disco_buf, &len);
len = mlen; len = mlen;
switch_socket_send(listener->sock, message, &len); switch_socket_send(listener->sock, message, &len);
close_socket(&listener->sock); close_socket(&listener->sock);