linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06451
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3183: Revise INF order in c-c connections as advised by ADC 1.0.2
------------------------------------------------------------
revno: 3183
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2013-01-24 00:56:30 +0100
message:
Revise INF order in c-c connections as advised by ADC 1.0.2
modified:
changelog.txt
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 'changelog.txt'
--- changelog.txt 2013-01-21 19:03:27 +0000
+++ changelog.txt 2013-01-23 23:56:30 +0000
@@ -19,6 +19,7 @@
* Improve OpenSSL error handling
* Add copy menus to various lists (poy)
* [L#289713] Add a "Copy user information" menu item (poy)
+* [ADC] Revise INF order in c-c connections as advised by ADC 1.0.2
Note: The hash registry will be upgraded when running this version for the
first time. Make sure all your drives are connected to avoid re-hashing.
=== modified file 'dcpp/ConnectionManager.cpp'
--- dcpp/ConnectionManager.cpp 2013-01-18 21:28:38 +0000
+++ dcpp/ConnectionManager.cpp 2013-01-23 23:56:30 +0000
@@ -393,7 +393,6 @@
defFeatures.push_back("AD" + UserConnection::FEATURE_ZLIB_GET);
}
aSource->sup(defFeatures);
- aSource->inf(false);
} else {
aSource->inf(true);
}
@@ -690,6 +689,10 @@
aSource->setFlag(UserConnection::FLAG_UPLOAD);
addUploadConnection(aSource);
}
+
+ if(aSource->isSet(UserConnection::FLAG_INCOMING)) {
+ aSource->inf(false);
+ }
}
void ConnectionManager::force(const UserPtr& aUser) {