Merge branch 'wip/tingping/socketclient-cancel-2' into 'master'
gsocketclient: Fix potential critical when cancelling connect
Closes #1747 (closed)
See merge request !783 (merged)
(cherry picked from commit b17436d9)
313e7cba gsocketclient: Fix potential critical when cancelling connect