fixed bug due to operator precedence. It  caused changes
in peer state(seeder or not) not to be properly communicated to the caller