79797608

Date: 2025-10-23 09:30:25
Score: 0.5
Natty:
Report link

As an alternative, if you're just using a one-off WakeLock and you don't need to share it across multiple tasks, you can also call wakeLock.setReferenceCounted(false) prior to calling wakeLock.acquire(). This would avoid the thread-safety concerns and still prevent the crash.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: William Brawner