Yet Another OSS Bug.

git-svn-id: http://yate.null.ro/svn/yate/trunk@174 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-01-09 08:15:54 +00:00
parent 06e8310a41
commit cd819316de
1 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ bool OssHandler::received(Message &msg)
}
DataEndpoint *dd = static_cast<DataEndpoint *>(msg.userData());
Debug(DebugInfo,"We are routing to device '%s'",dest.matchString(1).c_str());
if (dd)
dd->connect(chan);
if (dd && chan->connect(dd))
chan->deref();
else {
const char *direct = msg.getValue("direct");
if (direct)