fixed getwork segment fault when startup option -server=false