check connection before using mClient
Merge pull request #360 from shimingfei/WorkerClientFix

check connection before using mClient