fix for error events doubling (reconnect off)
Merge pull request #320 from gruzovator/error-event-doubling-fix

fix for error events doubling (reconnect off)