Skip to content

Commit

Permalink
Fix handling of "File not available" errors in NMDC hubs
Browse files Browse the repository at this point in the history
  • Loading branch information
maksis committed Oct 13, 2018
1 parent b6e8837 commit 6155d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airdcpp/airdcpp/UserConnection.cpp
Expand Up @@ -100,7 +100,8 @@ void UserConnection::on(BufferedSocketListener::Line, const string& aLine) noexc
fire(UserConnectionListener::Direction(), this, param.substr(0, x), param.substr(x+1));
}
} else if(cmd == "Error") {
if(Util::stricmp(param.c_str(), FILE_NOT_AVAILABLE)) {
if (Util::stricmp(param.c_str(), FILE_NOT_AVAILABLE) == 0 ||
param.rfind(/*path/file*/" no more exists") != string::npos) {
fire(UserConnectionListener::FileNotAvailable(), this);
} else {
fire(UserConnectionListener::ProtocolError(), this, param);
Expand Down

0 comments on commit 6155d23

Please sign in to comment.