Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
a9bc89f9
Commit
a9bc89f9
authored
Jun 28, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extra check in RoutingQueue
parent
3746ff6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dream/simulation/RoutingQueue.py
dream/simulation/RoutingQueue.py
+5
-0
No files found.
dream/simulation/RoutingQueue.py
View file @
a9bc89f9
...
...
@@ -57,6 +57,11 @@ class RoutingQueue(Queue):
if
not
isInRouting
:
for
entity
in
activeObjectQueue
:
if
not
entity
.
receiver
:
# check additionally the next objects if they alreay hold a sub-batch of this batch
for
o
in
self
.
next
:
if
o
.
getActiveObjectQueue
():
if
o
.
getActiveObjectQueue
()[
0
].
parentBatch
==
entity
.
parentBatch
and
not
(
o
is
callerObject
):
return
False
isInRouting
=
True
break
return
len
(
activeObjectQueue
)
>
0
and
thecaller
.
isInRouteOf
(
self
)
and
isInRouting
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment