fix bug in ChannelSwitch::ChannelCreatePutSpace() when a channel has only one route

pull/2/head
weidai 2003-07-18 02:52:49 +00:00
parent 38b49e4543
commit 37db5ab134
1 changed files with 2 additions and 1 deletions

View File

@ -230,9 +230,10 @@ byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, unsigned
if (!m_it.End())
{
BufferedTransformation &target = m_it.Destination();
const std::string &channel = m_it.Channel();
m_it.Next();
if (m_it.End()) // there is only one target channel
return target.ChannelCreatePutSpace(m_it.Channel(), size);
return target.ChannelCreatePutSpace(channel, size);
}
size = 0;
return NULL;