ListenThread: Fixed socket-querying, might have crashed some linux versions.
ListenThread: Fixed socket-querying, might have crashed some linux versions.

Hopefully this fixes FS #345

git-svn-id: ffe80d23790c2318db4f9b6ad70c6163efa9c8e4@1345 0a769ca7-a7f5-676a-18bf-c427514a06d6

zackp30/cuberite,nichwall/cuberite,zackp30/cuberite,johnsoch/cuberite,mjssw/cuberite,SamOatesPlugins/cuberite,kevinr/cuberite,Altenius/cuberite,Frownigami1/cuberite,SamOatesPlugins/cuberite,kevinr/cuberite,johnsoch/cuberite,Howaner/MCServer,Fighter19/cuberite,bendl/cuberite,nounoursheureux/MCServer,nichwall/cuberite,bendl/cuberite,electromatter/cuberite,Fighter19/cuberite,johnsoch/cuberite,ionux/MCServer,kevinr/cuberite,MuhammadWang/MCServer,MuhammadWang/MCServer,thetaeo/cuberite,birkett/MCServer,birkett/MCServer,Altenius/cuberite,zackp30/cuberite,tonibm19/cuberite,mjssw/cuberite,MuhammadWang/MCServer,Tri125/MCServer,marvinkopf/cuberite,HelenaKitty/EbooMC,tonibm19/cuberite,Tri125/MCServer,birkett/cuberite,nevercast/cuberite,johnsoch/cuberite,nevercast/cuberite,kevinr/cuberite,mmdk95/cuberite,jammet/MCServer,nounoursheureux/MCServer,birkett/cuberite,kevinr/cuberite,QUSpilPrgm/cuberite,Fighter19/cuberite,nicodinh/cuberite,jammet/MCServer,nevercast/cuberite,marvinkopf/cuberite,QUSpilPrgm/cuberite,zackp30/cuberite,Schwertspize/cuberite,linnemannr/MCServer,Fighter19/cuberite,Schwertspize/cuberite,electromatter/cuberite,SamOatesPlugins/cuberite,tonibm19/cuberite,nounoursheureux/MCServer,zackp30/cuberite,Howaner/MCServer,birkett/cuberite,Howaner/MCServer,mc-server/MCServer,mc-server/MCServer,mjssw/cuberite,nichwall/cuberite,Frownigami1/cuberite,QUSpilPrgm/cuberite,Frownigami1/cuberite,mc-server/MCServer,guijun/MCServer,thetaeo/cuberite,Frownigami1/cuberite,Haxi52/cuberite,Altenius/cuberite,Fighter19/cuberite,ionux/MCServer,Schwertspize/cuberite,birkett/MCServer,Haxi52/cuberite,jammet/MCServer,marvinkopf/cuberite,linnemannr/MCServer,nounoursheureux/MCServer,mmdk95/cuberite,nicodinh/cuberite,ionux/MCServer,nichwall/cuberite,QUSpilPrgm/cuberite,HelenaKitty/EbooMC,electromatter/cuberite,QUSpilPrgm/cuberite,HelenaKitty/EbooMC,nicodinh/cuberite,kevinr/cuberite,guijun/MCServer,bendl/cuberite,zackp30/cuberite,thetaeo/cuberite,Schwertspize/cuberite,HelenaKitty/EbooMC,mjssw/cuberite,birkett/MCServer,electromatter/cuberite,mjssw/cuberite,nicodinh/cuberite,nichwall/cuberite,nicodinh/cuberite,thetaeo/cuberite,linnemannr/MCServer,guijun/MCServer,HelenaKitty/EbooMC,Haxi52/cuberite,guijun/MCServer,jammet/MCServer,johnsoch/cuberite,tonibm19/cuberite,birkett/MCServer,bendl/cuberite,Frownigami1/cuberite,nichwall/cuberite,marvinkopf/cuberite,linnemannr/MCServer,Schwertspize/cuberite,birkett/cuberite,linnemannr/MCServer,tonibm19/cuberite,Tri125/MCServer,mmdk95/cuberite,nevercast/cuberite,mc-server/MCServer,bendl/cuberite,birkett/cuberite,guijun/MCServer,jammet/MCServer,mmdk95/cuberite,Tri125/MCServer,Fighter19/cuberite,marvinkopf/cuberite,mc-server/MCServer,ionux/MCServer,guijun/MCServer,nevercast/cuberite,SamOatesPlugins/cuberite,Howaner/MCServer,ionux/MCServer,mjssw/cuberite,Haxi52/cuberite,MuhammadWang/MCServer,Haxi52/cuberite,birkett/MCServer,mc-server/MCServer,Howaner/MCServer,mmdk95/cuberite,electromatter/cuberite,jammet/MCServer,Altenius/cuberite,birkett/cuberite,mmdk95/cuberite,MuhammadWang/MCServer,nicodinh/cuberite,linnemannr/MCServer,QUSpilPrgm/cuberite,Tri125/MCServer,Howaner/MCServer,marvinkopf/cuberite,Tri125/MCServer,Altenius/cuberite,thetaeo/cuberite,Haxi52/cuberite,nounoursheureux/MCServer,SamOatesPlugins/cuberite,nounoursheureux/MCServer,electromatter/cuberite,nevercast/cuberite,tonibm19/cuberite,thetaeo/cuberite,ionux/MCServer