iw0 has uploaded this change for review.
pySim-shell: Unregister profile commands during equip
Change-Id: I893bb5ae95f5c6e4c2be2d133754e427bc92a33d
---
M pySim-shell.py
1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/24/33424/1
diff --git a/pySim-shell.py b/pySim-shell.py
index f6cd75d..400e70d 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -204,6 +204,10 @@
if self.rs:
lchan = self.rs.lchan[0]
lchan.unregister_cmds(self)
+ if self.rs.profile:
+ for cmd_set in self.rs.profile.shell_cmdsets:
+ self.unregister_command_set(cmd_set)
+
for cmds in [Iso7816Commands, Ts102222Commands, PySimCommands]:
cmd_set = self.find_commandsets(cmds)
if cmd_set:
To view, visit change 33424. To unsubscribe, or for help writing mail filters, visit settings.