Fix few bugs:
1、Check connection bug cause reload list can't complate.
2、Multi-thread load protocol variable may cause SDK crash.
Merge pull request #2 from ight32/master

Fix few bugs: