Skip to content

Commit

Permalink
Merge pull request #30 from yan12125/fix-wait-for-unlock
Browse files Browse the repository at this point in the history
fix: wait_for_unlock() socket call
  • Loading branch information
hrehfeld authored Mar 4, 2022
2 parents bab3ae3 + 32efd3c commit 14c6dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepassxc_browser/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def wait_for_unlock(self):
"""
while True:
try:
action = json.loads(self.connection.recv(BUFF_SIZE).decode())['action']
action = json.loads(self.connection.recvfrom(BUFF_SIZE)[0].decode())['action']
if action == "database-unlocked":
break
except socket.timeout:
Expand Down

0 comments on commit 14c6dae

Please sign in to comment.