drop connection on bad write

This commit is contained in:
Anthony Minessale 2014-07-16 00:37:09 +05:00
parent 6f12de990a
commit db63dc5884
1 changed files with 1 additions and 0 deletions

View File

@ -548,6 +548,7 @@ static switch_ssize_t ws_write_json(jsock_t *jsock, cJSON **json, switch_bool_t
if (r <= 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ALERT, "WRITE RETURNED ERROR %ld\n", r);
jsock->drop = 1;
}
return r;