diff options
| author | 2023-05-15 13:38:16 -0500 | |
|---|---|---|
| committer | 2023-05-24 10:55:05 -0500 | |
| commit | d1d846c5e1fe4a168bf1a19066cb4155a571e787 (patch) | |
| tree | 1abe5d439dd31ced822b257ffe4acf202c568fd6 /libs/ultrahdr/jpegencoderhelper.cpp | |
| parent | 1dd15d0d52d6975a01cbc5cc3359c9747df5717f (diff) | |
Skip window infos updates if no listeners
This change fixes a bug where WindowInfosListenerInvoker's active
message count is incremented for messages when there are no listeners.
In this case, onWindowInfosReported is never called, leading to
out-of-sync window infos once listeners are added back. This scenario
may occur if system server dies.
Bug: 279792237
Test: WindowInfosListenerInvokerTest, manual tested by killing system server
Merged-In: If62f7cc56b48570f633e8e640006f020b053ea6f
Change-Id: I521dad46a763d0380807ba20b9a4ec9dcecf6bfc
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions