Skip to content

Commit bc3ec49

Browse files
committed
up
1 parent 2c1ec24 commit bc3ec49

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

kbe/src/server/baseappmgr/baseappmgr.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,11 @@ void Baseappmgr::onAddComponent(const Components::ComponentInfos* pInfos)
123123

124124
if(pInfos->componentType == LOGINAPP_TYPE && cinfo->pChannel != NULL)
125125
{
126-
std::map< COMPONENT_ID, Baseapp >::iterator iter = baseapps_.begin();
127-
128-
for(; iter != baseapps_.end(); iter++)
129-
{
130-
Mercury::Bundle::SmartPoolObjectPtr bundleptr = Mercury::Bundle::createSmartPoolObj();
126+
Mercury::Bundle::SmartPoolObjectPtr bundleptr = Mercury::Bundle::createSmartPoolObj();
131127

132-
(*bundleptr)->newMessage(LoginappInterface::onBaseappInitProgress);
133-
(*(*bundleptr)) << baseappsInitProgress_;
134-
(*bundleptr)->send(networkInterface_, cinfo->pChannel);
135-
}
128+
(*bundleptr)->newMessage(LoginappInterface::onBaseappInitProgress);
129+
(*(*bundleptr)) << baseappsInitProgress_;
130+
(*bundleptr)->send(networkInterface_, cinfo->pChannel);
136131
}
137132
}
138133

0 commit comments

Comments
 (0)