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:
parent
f0efb2945a
commit
cf0e6bb935
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue