Wakelock never counts down

オープン
#30 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@bourdakos1 がすでに取り組んでいます。

2016年8月17日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
Java
スター
8
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Xlythe/TextManager のほかの issue

Xlythe/TextManager の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。