Commit b2c88f911e6eebe6268886c48a57e32460c4f2b6
1 parent
dcb9ed61af
Exists in
master
hanya eksekusi enablePull jika pre state tidak aktif
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
main.py
... | ... | @@ -654,7 +654,7 @@ def checkBalance(modem, do_not_update = False, return_result = False): |
654 | 654 | logger.info('Disabling pull, balance {0} < {1}'.format(_BALANCE, MIN_BALANCE)) |
655 | 655 | disablePull() |
656 | 656 | |
657 | - else: | |
657 | + elif not isPullEnable: | |
658 | 658 | |
659 | 659 | logger.info('Enabling pull, balance {0} > {1}'.format(_BALANCE, MIN_BALANCE)) |
660 | 660 | enablePull() |