mirror of https://github.com/node-red/node-red.git
Check indexOf result before splicing to prevent removing wrong element when clearDelayList() runs between timeout registration and execution. If indexOf returns -1 (id already removed), splice(-1, 1) would incorrectly remove the last element. Now we skip the splice if id is not found. Fixes: Dennis-SEG/node-red#3 |
||
|---|---|---|
| .. | ||
| @node-red | ||
| node-red | ||