diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-10-22 15:17:37 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2019-10-30 16:00:11 +0530 |
commit | 8f9ee9159d576167ba6c71d2be4098709e424244 (patch) | |
tree | e7a8a73456f107a5fd3319d42d28008e4f6cb47b | |
parent | 24cc497c02b97b834d535431ec50d3f75c18ddcd (diff) | |
download | targetcli-8f9ee9159d576167ba6c71d2be4098709e424244.tar.gz |
daemon: load the prefs on every new connection
Problem:
-------
Noticing inconsistency with prefs when switching between cli mode and
daemon mode
Solution:
-------
Makesure to read/load the prefs on every new connection
Thanks to 'Xiubo Li <xiubli@redhat.com>' for reporting the problem
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
-rwxr-xr-x | daemon/targetclid | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/targetclid b/daemon/targetclid index 156a25c..fb472dc 100755 --- a/daemon/targetclid +++ b/daemon/targetclid @@ -142,6 +142,9 @@ class TargetCLI: ''' Handle commands from client ''' + # load the prefs + self.shell.prefs.load() + still_listen = True # Receive the data in small chunks and retransmit it while still_listen: |