fix crash reported by Bernard Li - connection_thread_main: avoid double calls to...