summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2018-01-29 14:00:44 +0900
committerHugo Benichi <hugobenichi@google.com>2018-01-29 16:01:56 +0900
commite93c569bd3812be415dc21f7b60c042675b85503 (patch)
tree396e2640fef823e68ecd8d57abebf0e8a284b7a7 /tools/aapt2/java/JavaClassGenerator.cpp
parent5775177aaf54f37b49d572eac2b8dfe138f969f3 (diff)
Prevent crash in NetworkManagementServiceTest#shutdown()
The shutdown method in NetworkManagementServiceTest was trying to close the local socket on the test side, causing the NativeDaemonConnector internal to NetworkManagementService to sometime crash due to the output stream on NetworkManagementService side to throw on pending reads. The correct fix would be to shutdown the NativeDaemonConnector inside NetworkManagementService and implement NetworkManagementService's shutdown method, however there is no way to cleanly close a NativeDaemonConnector. Instead, this patch doesn't do any cleanup of the listening socket, the test local socket, and its output stream. These objects' resources get eventually collected by the system when the test process exits. Test: runtest frameworks-net Change-Id: I72c9aa43403754b55e9d23bf4f3ba8b7b4a3e10a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions