diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 02:58:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 02:58:19 -0500 |
| commit | 0a823f87a77a53ba73a3c05d69b08fb24e5f14ee (patch) | |
| tree | a2eea413696c9e148d6ac2c57221bfcc0ae48505 /helpers.go | |
| parent | 14edae96ad6876121b7fdb51505c9e23b72a1f98 (diff) | |
typosv0.0.19
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,8 +96,8 @@ func (x *Chats) AppendNew(y *Chat) { // a Append() shortcut (that does Clone() with a mutex) notsure if it really works func (x *Chat) AppendEntry(y *ChatEntry) { - x.Lock() - defer x.Unlock() + chatMu.Lock() + defer chatMu.Unlock() x.Entries = append(x.Entries, proto.Clone(y).(*ChatEntry)) } |
