Skip to content

Commit

Permalink
Merge pull request #12 from kyuhojeong/forward
Browse files Browse the repository at this point in the history
[DEBUG] Packet is not forwarded to controller
  • Loading branch information
pstjuste committed Dec 21, 2013
2 parents 94e82bb + 17ae61a commit 3ad1057
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tincanconnectionmanager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ void TinCanConnectionManager::HandlePacket(talk_base::AsyncPacketSocket* socket,
if (dest.compare(0, 3, "000") == 0) {
forward_socket_->SendTo(data, len, forward_addr_,talk_base::DSCP_DEFAULT);
}
else if (short_uid_map_.find(dest) != short_uid_map_.end() &&
short_uid_map_[dest]->writable()) {
else if (short_uid_map_.find(dest) == short_uid_map_.end()) {
forward_socket_->SendTo(data, len, forward_addr_,talk_base::DSCP_DEFAULT);
}
else if (short_uid_map_[dest]->writable()) {
LOG_F(INFO) << "found in uid map and send packet to channel\n";
int component = cricket::ICE_CANDIDATE_COMPONENT_DEFAULT;
cricket::TransportChannelImpl* channel =
short_uid_map_[dest]->GetChannel(component);
Expand Down

0 comments on commit 3ad1057

Please sign in to comment.