← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3184: send INF before GET

 

------------------------------------------------------------
revno: 3184
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2013-01-24 01:15:36 +0100
message:
  send INF before GET
modified:
  dcpp/ConnectionManager.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/ConnectionManager.cpp'
--- dcpp/ConnectionManager.cpp	2013-01-23 23:56:30 +0000
+++ dcpp/ConnectionManager.cpp	2013-01-24 00:15:36 +0000
@@ -664,6 +664,10 @@
 		token = aSource->getToken();
 	}
 
+	if(aSource->isSet(UserConnection::FLAG_INCOMING)) {
+		aSource->inf(false);
+	}
+
 	bool down = false;
 	{
 		Lock l(cs);
@@ -689,10 +693,6 @@
 		aSource->setFlag(UserConnection::FLAG_UPLOAD);
 		addUploadConnection(aSource);
 	}
-
-	if(aSource->isSet(UserConnection::FLAG_INCOMING)) {
-		aSource->inf(false);
-	}
 }
 
 void ConnectionManager::force(const UserPtr& aUser) {