Fixed an error in attempt_connection
Merge remote-tracking branch 'origin/decorator' into decorator