summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2017-07-13 16:22:50 -0700
committerEric Erfanian <erfanian@google.com>2017-07-24 18:48:14 +0000
commit4ad32fe2dc7b27adc7a811223c2dc2bdf9e50afb (patch)
treecfca583eb15d85aaf7ccf8c120b8d6fdef09b4e0 /java/com/android/voicemail
parent687f1931532d66b51790998b318abca6a0d3f928 (diff)
Use a shared thread pool for spam transport.
Before, we were creating a custom thread pool for spam transport, which isn't necessary. Instead, we can just use an application wide thread pool. Also fixed some instances where we were not clearing the thread stats tag after opening the socket. Test: manually launched app with data cleared and observed no crash PiperOrigin-RevId: 161882076 Change-Id: I39bdd31cf5fa8a974d7535e861ec0716c85986f3
Diffstat (limited to 'java/com/android/voicemail')
-rw-r--r--java/com/android/voicemail/impl/mail/MailTransport.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/mail/MailTransport.java b/java/com/android/voicemail/impl/mail/MailTransport.java
index 00339f03d..c35e41450 100644
--- a/java/com/android/voicemail/impl/mail/MailTransport.java
+++ b/java/com/android/voicemail/impl/mail/MailTransport.java
@@ -195,6 +195,8 @@ public class MailTransport {
} catch (IOException ioe) {
LogUtils.d(TAG, ioe.toString());
throw new MessagingException(MessagingException.IOERROR, ioe.toString());
+ } finally {
+ TrafficStats.clearThreadStatsTag();
}
}