lib/client: fix batch cleanup

This commit is contained in:
Simon Ser 2021-06-10 12:10:08 +02:00
parent 20f20b18df
commit ba92b3f677

View File

@ -299,7 +299,7 @@ export default class Client extends EventTarget {
// Delete after firing the message event so that handlers can access
// the batch
if (deleteBatch) {
this.batches.delete(name);
this.batches.delete(deleteBatch);
}
}