Use default thread sleep value when failed to read data from socket.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4421 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-05-31 10:53:16 +00:00
parent 958030570a
commit 1139c82d79
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ void IAXEngine::readSocket(SocketAddr& addr)
if (!m_socket.canRetry())
Debug(this,DebugWarn,"Socket read error: %s (%d)",
::strerror(m_socket.error()),m_socket.error());
Thread::msleep(1,true);
Thread::idle(true);
continue;
}
addFrame(addr,buf,len);