I think it happens because you are trying to connect 2 times with the same connection