Disable TcpSocketMonitor polling.
Droidfooders are observing lots of crashes in updateSocketStats.
Urgently disable the code until we have a better fix.
Bug: 72512637
Test: netd builds
Change-Id: I13b801aba35319820841007f8785cfd0591f479f
(cherry picked from commit bd468abb077e08317b22cafe61235f5e31ee8c1c)
diff --git a/server/TcpSocketMonitor.cpp b/server/TcpSocketMonitor.cpp
index a6d71b7..3917eea 100644
--- a/server/TcpSocketMonitor.cpp
+++ b/server/TcpSocketMonitor.cpp
@@ -297,10 +297,13 @@
mIsRunning = true;
mIsSuspended = true;
mPollingThread = std::thread([this] {
+ (void) this;
+#if 0 // Disable due to crashes in updateSocketStats. b/72512637
while (isRunning()) {
poll();
waitForNextPoll();
}
+#endif
});
}