Skip to content

Commit 03045bb

Browse files
committed
remove async in on close of wait-for-usertask
1 parent 213c785 commit 03045bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wait-for-usertask.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ module.exports = function (RED) {
7272
}
7373
};
7474

75-
subscribe();
75+
await subscribe();
7676
});
7777

78-
node.on('close', async () => {
78+
node.on('close', () => {
7979
if (client != null && subscription != null) {
8080
client.userTasks.removeSubscription(subscription);
8181
}

0 commit comments

Comments
 (0)