Skip to content

Commit f2ee6d2

Browse files
authored
controller: fix build when disabling TCP (#37081)
1 parent c3c2a0e commit f2ee6d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/controller/CHIPDeviceControllerFactory.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ CHIP_ERROR DeviceControllerFactory::InitSystemState(FactoryInitParams params)
290290
//
291291
app::DnssdServer::Instance().SetFabricTable(stateParams.fabricTable);
292292

293+
#if INET_CONFIG_ENABLE_TCP_ENDPOINT
293294
// Disable the TCP Server based on the TCPListenParameters setting.
294295
app::DnssdServer::Instance().SetTCPServerEnabled(tcpListenParams.IsServerListenEnabled());
296+
#endif
295297
}
296298

297299
stateParams.sessionSetupPool = Platform::New<DeviceControllerSystemStateParams::SessionSetupPool>();

0 commit comments

Comments
 (0)