andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
496 stars 70 forks source link

Correct mutex unlocking for guild cache accesses #340

Closed Lappy closed 3 years ago

Lappy commented 3 years ago

Description

CacheLFUImmutable functions that accessed guilds were incorrectly deferring a call to mutex.Lock() causing the goroutine to block indefinitely.

Type of change

Checklist: