fix infinite loop

line 30 results in an infinite loop that will never terminate. i just had to fix this locally to get the server running.
Merge pull request #146 from FabianFrank/patch-1

fix infinite loop