commit | 0d4012a31235e886d0911b49bf4cc7329236e31a | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Wed Oct 02 10:52:55 2019 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Wed Oct 02 14:22:07 2019 -0700 |
tree | c9aaa91ebdddc791832dcfb039ec5290187efb5a | |
parent | b79c636f784330d512655a8ea4f54736f0cb2e72 [diff] |
liblog: don't set transports to nullptr when they close The old code did not free the transports, just unlink their nodes from the linked list, so there was no race condition between close() and other threads writing to the logs. By settings these to nullptr, I introduced a race condition, but setting them to nullptr isn't necessary, so let's simply not do that. Test: liblog-unit-tests Change-Id: Iec0b680addd13b5d30bd91ccef5bdeab6bf797b0