Skip to content

Commit

Permalink
fix(android): fixed IllegalMonitorStateException crashed issue (#3800)
Browse files Browse the repository at this point in the history
Co-authored-by: Russell Wheatley <russellwheatley85@gmail.com>
  • Loading branch information
HyeonjuPark and russellwheatley authored Jun 22, 2020
1 parent c1d3132 commit 76f6cf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ DocumentSnapshot getDocument(DocumentReference documentReference) throws Firebas
*/

private void safeUnlock() {
if (lock.isLocked()) {
if (lock.isHeldByCurrentThread()) {
lock.unlock();
}
}
Expand Down

0 comments on commit 76f6cf9

Please sign in to comment.