Skip to content

Commit

Permalink
More fixes and changes
Browse files Browse the repository at this point in the history
.: Fixed: slow peers often timed out at the begining of upload session (thanks to Some Support for the idea)
.: Fixed: odd nested loop in graph module
.: Fixed: IRC socket should not log errors while waiting for data (thanks to Enig123)
.: Fixed: "Direct add with empty queue" peers could have hours of wait time
.: Changed: code simplification in several modules, optimizations and minor bug fixes
  • Loading branch information
irwir committed Jun 17, 2018
1 parent fdf9bdc commit e6eaafc
Show file tree
Hide file tree
Showing 30 changed files with 3,172 additions and 4,131 deletions.
4 changes: 2 additions & 2 deletions AbstractFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ void CAbstractFile::AddTagUnique(CTag *pTag)
{
for (INT_PTR i = taglist.GetSize(); --i >= 0;) {
const CTag *pCurTag = taglist[i];
if (((pCurTag->GetNameID() != 0 && pCurTag->GetNameID() == pTag->GetNameID())
|| (pCurTag->GetName() != NULL && pTag->GetName() != NULL && CmpED2KTagName(pCurTag->GetName(), pTag->GetName()) == 0)
if (( (pCurTag->GetNameID() != 0 && pCurTag->GetNameID() == pTag->GetNameID())
|| (pCurTag->GetName() != NULL && pTag->GetName() != NULL && CmpED2KTagName(pCurTag->GetName(), pTag->GetName()) == 0)
)
&& pCurTag->GetType() == pTag->GetType())
{
Expand Down
Loading

0 comments on commit e6eaafc

Please sign in to comment.