Fixed timeout error

Changed the way empty responses were discovered in the readPacket subroutine.