fix bug in ChannelSwitch::ChannelCreatePutSpace() when a channel has only one route
parent
38b49e4543
commit
37db5ab134
|
|
@ -230,9 +230,10 @@ byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, unsigned
|
||||||
if (!m_it.End())
|
if (!m_it.End())
|
||||||
{
|
{
|
||||||
BufferedTransformation &target = m_it.Destination();
|
BufferedTransformation &target = m_it.Destination();
|
||||||
|
const std::string &channel = m_it.Channel();
|
||||||
m_it.Next();
|
m_it.Next();
|
||||||
if (m_it.End()) // there is only one target channel
|
if (m_it.End()) // there is only one target channel
|
||||||
return target.ChannelCreatePutSpace(m_it.Channel(), size);
|
return target.ChannelCreatePutSpace(channel, size);
|
||||||
}
|
}
|
||||||
size = 0;
|
size = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue