i would not think its a problem , but you can always try using while wend loop see if changes the problem

while dooropen <> 0
wend