Always restart cluster streams with InError flag set.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4122 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-02-21 15:59:28 +00:00
parent a8c6c7d2b6
commit 4e4ae64f6f
1 changed files with 2 additions and 1 deletions

View File

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