Revert "*Add support for destroy"

This reverts commit b42069231c.
This commit is contained in:
Derrick Hammer 2023-04-08 22:55:05 -04:00
parent b42069231c
commit acade9801f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 3 deletions

View File

@ -556,9 +556,8 @@ async function createProtomuxMessage(aq: ActiveQuery) {
};
aq.setReceiveUpdate?.((data) => {
if (["send", "destroy"].includes(data.action)) {
message[data.action](...data.args);
return;
if (data.action === "send") {
message.send(...data.args);
}
defers[data.action]?.resolve(data.args);