store: fix clearing buffers for a specific server
This commit is contained in:
parent
5db0105dbd
commit
6c26ee2156
1 changed files with 1 additions and 1 deletions
2
store.js
2
store.js
|
@ -148,7 +148,7 @@ export class Buffer {
|
|||
|
||||
clear(server) {
|
||||
if (server) {
|
||||
for (const buf of this.m.values()) {
|
||||
for (const buf of this.list(server)) {
|
||||
this.m.delete(this.key(buf));
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue