Holy fuck!! So many quirks to get things done. It should work now, but it's not safe agains race conditions. Maybe throwing in a synchroniced and call it a day...
Merge branch 'master' of https://github.com/ETSE-USC/ChatP2P