Skip to content

Commit

Permalink
ircd::exception: Fix comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevolk committed Sep 25, 2019
1 parent 6dcdbba commit 015134d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ircd/exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ ircd::is(const std::error_code &ec,
const std::errc &errc)
noexcept
{
return ec == errc;
return system_category(ec) && ec.value() == int(errc);
}

bool
Expand Down

0 comments on commit 015134d

Please sign in to comment.