fixed one problem with reconnectin

Merged Dennis requested to merge fix-connection-problems into master

Merge request reports