Remove unnecessary Repair check for ServiceMgr cancel()
diff --git a/src/lib/profiles/weave-tunneling/WeaveTunnelConnectionMgr.cpp b/src/lib/profiles/weave-tunneling/WeaveTunnelConnectionMgr.cpp
index 11c2f01..1707239 100644
--- a/src/lib/profiles/weave-tunneling/WeaveTunnelConnectionMgr.cpp
+++ b/src/lib/profiles/weave-tunneling/WeaveTunnelConnectionMgr.cpp
@@ -643,17 +643,9 @@
// Close connection to the Service
#if WEAVE_CONFIG_ENABLE_SERVICE_DIRECTORY
-
-#if WEAVE_CONFIG_TCP_CONN_REPAIR_SUPPORTED
- // If underlying TCP connection was repaired, then no need to invoke Service
- // Manager.
- if (!mServiceCon->IsRepaired)
-#endif // WEAVE_CONFIG_TCP_CONN_REPAIR_SUPPORTED
+ if (mTunAgent->mServiceMgr)
{
- if (mTunAgent->mServiceMgr)
- {
- mTunAgent->mServiceMgr->cancel(mTunAgent->mPeerNodeId, this);
- }
+ mTunAgent->mServiceMgr->cancel(mTunAgent->mPeerNodeId, this);
}
#endif // WEAVE_CONFIG_ENABLE_SERVICE_DIRECTORY