mirror of https://github.com/secdev/scapy.git
Merge pull request #908 from commial/fix/automaton-double-parseargs
Automaton: avoid a double call to parse_args
This commit is contained in:
commit
30366e1c80
|
@ -670,8 +670,6 @@ class Automaton(six.with_metaclass(Automaton_metaclass)):
|
||||||
for stname in self.states:
|
for stname in self.states:
|
||||||
setattr(self, stname,
|
setattr(self, stname,
|
||||||
_instance_state(getattr(self, stname)))
|
_instance_state(getattr(self, stname)))
|
||||||
|
|
||||||
self.parse_args(*args, **kargs)
|
|
||||||
|
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue