aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-05-27 11:02:01 -0700
committerZeyla Hellyer <[email protected]>2018-05-27 11:02:49 -0700
commitc659bbd756391fc26e9e862937ef77113ee892ed (patch)
tree7356f49c82036c6e61bfd05f6174d5dcce92910e /examples/05_command_framework
parentDo some little optimizations on `find(_n)` (diff)
downloadserenity-c659bbd756391fc26e9e862937ef77113ee892ed.tar.xz
serenity-c659bbd756391fc26e9e862937ef77113ee892ed.zip
Remove deadlocking in Member::highest_role_info
Instead of calling `parking_lot::RwLock::read` on the member's guild, call `parking_lot::RwLock::try_read` and return None early if it would cause a deadlock.
Diffstat (limited to 'examples/05_command_framework')
0 files changed, 0 insertions, 0 deletions