This commit is contained in:
Kovid Goyal
2022-03-11 15:47:39 +05:30
parent 5bb6b29ca3
commit 8613c6e1cd
2 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ with SharedMemory(
if shm.read(1) == b'\x01':
break
response = json.loads(shm.read_data_with_size())
if is_confirm:
response = 'yes' if response else 'no'
if response:
print(response, flush=True)
if is_confirm:
response = 'yes' if response else 'no'
if response:
print(response, flush=True)