Only set connection history if strings differ

This commit is contained in:
Tim Wojtulewicz 2022-05-09 14:35:56 -07:00
parent 0aafc8ae6c
commit 1f8d406658
3 changed files with 12 additions and 2 deletions

View file

@ -115,6 +115,11 @@ bool String::operator==(std::string_view s) const
return (memcmp(b, s.data(), n) == 0);
}
bool String::operator!=(std::string_view s) const
{
return ! (*this == s);
}
void String::Adopt(byte_vec bytes, int len)
{
Reset();