diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-08 15:04:45 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-08 15:04:45 +0000 |
commit | 46dc1e383c626c150f4b6fcef4de5a9fe8814188 (patch) | |
tree | 2fb6966f7ab8a0166f1c317e5a69464c0cfdca9a /channels/chan_zap.c | |
parent | 3210eb27d9703c871428d02b33d5e1f4d7149ac5 (diff) |
Remove unused code as well as demote an error message to a debug message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115548 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c201c1a4e..0788957f1 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -9369,21 +9369,17 @@ static void *ss7_linkset(void *data) res = ss7_read(ss7, pollers[i].fd); ast_mutex_unlock(&linkset->lock); } + if (pollers[i].revents & POLLOUT) { ast_mutex_lock(&linkset->lock); res = ss7_write(ss7, pollers[i].fd); ast_mutex_unlock(&linkset->lock); if (res < 0) { - ast_log(LOG_ERROR, "Error in write %s", strerror(errno)); + ast_debug(1, "Error in write %s\n", strerror(errno)); } } } -#if 0 - if (res < 0) - exit(-1); -#endif - while ((e = ss7_check_event(ss7))) { switch (e->e) { case SS7_EVENT_UP: |