actorlib/sim/SimActor: remove dead time between transactions

This commit is contained in:
Sebastien Bourdeauducq 2012-06-20 22:39:52 +02:00
parent 6aff41a883
commit cbc387f69e
1 changed files with 3 additions and 3 deletions

View File

@ -57,13 +57,13 @@ class SimActor(PureSimulable, Actor):
or isinstance(transactions, set): or isinstance(transactions, set):
self.active = set(transactions) self.active = set(transactions)
elif transactions is None: elif transactions is None:
self.active = [] self.active = set()
else: else:
raise TypeError raise TypeError
def do_simulation(self, s): def do_simulation(self, s):
if not self.done: if not self.done:
if not self.active:
self._next_transactions()
if self.active: if self.active:
self._process_transactions(s) self._process_transactions(s)
else:
self._next_transactions()