Fixed bug: always re-connect idle outgoing c2s streams.

git-svn-id: http://voip.null.ro/svn/yate@3087 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-02-18 11:46:45 +00:00
parent f0efb2945a
commit cf0e6bb935
1 changed files with 2 additions and 2 deletions

View File

@ -721,9 +721,9 @@ bool JBStream::canProcess(u_int64_t time)
}
if (state() == Idle) {
// Re-connect
// Don't connect if we are in error and have nothing to send
// Don't connect non client if we are in error and have nothing to send
if (m_restart) {
if (flag(InError) && !m_pending.skipNull())
if (m_type != c2s && flag(InError) && !m_pending.skipNull())
return false;
resetFlags(InError);
changeState(Connecting);