fixed reconnection problem
Merge pull request #164 from edencore/master

fixed reconnection problem