Resolve infinite loop on ReadLoop
Resolve infinite loop on ReadLoop

Close socket if it is a write message.

carhero/upnpx_ios,plashchynski/upnpx,plashchynski/upnpx,carhero/upnpx,carhero/upnpx_ios,carhero/upnpx,shabbirh/upnpx,plashchynski/upnpx,carhero/upnpx_ios,shabbirh/upnpx,carhero/upnpx,shabbirh/upnpx