fixed bug when initiating a new resize when one is already in progress.
Merge pull request #7 from 0xor1/Dev

fixed bug when initiating a new resize when one is already in progress.