Fix tp_add_connection()'s error handling

Description

As noted by Monty - tp_add_connection can call tp_remove_connection in error handling, however the later function also calls my_thread_end(), which it should not be doing -
tp_add_connection does not run in threadpool' thread, but in a dedicated server thread.

Environment

None

Assignee

Vladislav Vaintroub

Reporter

Vladislav Vaintroub

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure