send udp transport initialization order, search response broadcast transport null check

closes #39
This commit is contained in:
Matej Sekoranja
2016-03-23 21:10:04 +01:00
parent 43811e2511
commit 85e881fbcd
2 changed files with 96 additions and 92 deletions

View File

@@ -406,10 +406,14 @@ void ServerChannelFindRequesterImpl::channelFindResult(const Status& /*status*/,
{
ServerSearchHandler::s_channelNameToProvider[_name] = channelFind->getChannelProvider();
}
_wasFound = wasFound;
TransportSender::shared_pointer thisSender = shared_from_this();
_context->getBroadcastTransport()->enqueueSendRequest(thisSender);
BlockingUDPTransport::shared_pointer bt = _context->getBroadcastTransport();
if (bt)
{
TransportSender::shared_pointer thisSender = shared_from_this();
bt->enqueueSendRequest(thisSender);
}
}
}