Fixed the sending of outgoing messages.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4516 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-08-02 21:55:31 +00:00
parent 466697276e
commit 3ce44a7720

View File

@ -222,15 +222,11 @@ int p3MsgService::checkOutgoingMessages()
/* find the certificate */ /* find the certificate */
std::string pid = mit->second->PeerId(); std::string pid = mit->second->PeerId();
peerConnectState pstate;
bool toSend = false; bool toSend = false;
if (mLinkMgr->isOnline(pid)) if (mLinkMgr->isOnline(pid))
{ {
if (pstate.state & RS_PEER_S_CONNECTED) toSend = true;
{
toSend = true;
}
} }
else if (pid == ownId) /* FEEDBACK Msg to Ourselves */ else if (pid == ownId) /* FEEDBACK Msg to Ourselves */
{ {