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):
self.active = set(transactions)
elif transactions is None:
self.active = []
self.active = set()
else:
raise TypeError
def do_simulation(self, s):
if not self.done:
if not self.active:
self._next_transactions()
if self.active:
self._process_transactions(s)
else:
self._next_transactions()