Changed the return argument of the thread to a socket