Fix lock contention

This commit is contained in:
kortschak 2014-08-04 12:32:43 +09:30
parent ffb52af00b
commit 6513685520
2 changed files with 3 additions and 3 deletions

View file

@ -255,7 +255,6 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
it, _ = it.Optimize()
glog.V(2).Infoln(it.DebugString(0))
for {
// TODO(barakmich): Better halting.
select {
case <-ses.kill:
return