Fixed connection sometimes being too slow and some other possible problems.
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core