modify: socket service ondemand adapt L1 & L2

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6 2022-01-24 19:51:23 +08:00
parent 0dd79435e4
commit de48170d4c
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ static void ProcessWatchEvent_(const WatcherHandle watcherHandle, int fd, uint32
{
*events = 0;
Service *service = (Service *)context;
ServiceSocket *tmpSock = service->socketCfg;;
ServiceSocket *tmpSock = service->socketCfg;
while (tmpSock != NULL) {
if (tmpSock->sockFd == fd) {
tmpSock->watcher = NULL;