Use existing variable in api to clear a queue
Merge pull request #1012 from brainopia/patch-1

Use existing variable in api to clear a queue