Using Potentiometer to Control LED Blink Speed

The only issue I had with the code is that it has to finish the on / off cycle before the speed change is applied. Any help on finxing it?