Do not crash cap sim graph when there're no drains

This commit is contained in:
DarkPhoenix
2019-08-20 21:43:01 +03:00
parent 4ca737281d
commit cf6f884b3b
2 changed files with 24 additions and 17 deletions

View File

@@ -141,6 +141,9 @@ class CapSimulator:
awaitingInjectorsCounterWrap = Counter()
self.reset()
#if len(self.state) == 0:
push = heapq.heappush
pop = heapq.heappop