o
This commit is contained in:
parent
8440588f14
commit
17cf2343c5
|
@ -107,7 +107,15 @@ internal class Messages : IDisposable {
|
|||
}
|
||||
|
||||
internal void Add(Message message) {
|
||||
this.CurrentMutex.Wait();
|
||||
this.Current[message.Id] = message;
|
||||
this.CurrentMutex.Release();
|
||||
this.SpawnQueue.Enqueue(message);
|
||||
}
|
||||
|
||||
internal void Remove(Guid id) {
|
||||
this.CurrentMutex.Wait();
|
||||
this.Current.Remove(id);
|
||||
this.CurrentMutex.Release();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ internal class MessageList : ITab {
|
|||
if (resp.IsSuccessStatusCode) {
|
||||
this.Refresh();
|
||||
this.Plugin.Vfx.RemoveStatic(id);
|
||||
this.Plugin.Messages.Remove(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user