Fixed hanging error in SocketClient recieve method