Merge pull request #2744 from mathieui/gcadapter-stopthread GCAdapter: Disable the scanning thread when direct connect is disabled