Fixes Endless Loop while sending to remote server
Merge pull request #6 from MRH4287/fixServerCom

Fixes Endless Loop while sending to remote server