Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Wakelock never counts down

Đang mở
#30 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@bourdakos1 đang làm issue này rồi.

Từ ngày 17/8/2016.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug lib p0

Network.forceDataConnection -> onSuccess() has nullchecks. If any of the nullchecks goes off, pduDownloaded.countDown(); is never called so the wakelock hangs forever.

https://github.com/Xlythe/AndroidTextManager/blob/master/android-text-manager/src/main/java/com/xlythe/textmanager/text/TextReceiver.java#L110

There are several bugs here.

  1. The nullchecks should not prevent pduDownloaded.countDown(); from being called
  2. pduDownloaded.countDown(); should have been in a 'try/finally' block so that it is always run, even if return was called earlier
  3. The pduDownloaded.await(); call should have had a timeout (even a timeout of several minutes) so that it eventually closes itself

Before marking as closed, please search the code for any other calls to await() and make sure that #2 (try/finally) and #3 (await timeout) are applied in each case.

Ngôn ngữ chính
Java
Star
8
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Xlythe/TextManager

Tất cả issue của Xlythe/TextManager

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.