mirror of https://gitee.com/bigwinds/arangodb
fix for issue #150 patch
This commit is contained in:
parent
a667f633d5
commit
39dbfbff7c
|
@ -269,7 +269,7 @@ void ApplicationV8::collectGarbage () {
|
|||
_dirtyContexts.pop_back();
|
||||
}
|
||||
|
||||
if (context == 0 && ! gotSignal) {
|
||||
if (context == 0 && ! gotSignal && ! _freeContexts.empty()) {
|
||||
// we did not find a dirty context
|
||||
// so we'll pop one of the free contexts and clean it up
|
||||
context = _freeContexts.back();
|
||||
|
|
Loading…
Reference in New Issue