only react to connect once
Merge pull request #12 from dominictarr/master

only react to connect once