diff --git a/loader.js b/loader.js index 9a81ceefa4..f32fc8cb8c 100644 --- a/loader.js +++ b/loader.js @@ -301,8 +301,8 @@ function closeHandles() { for(var h in handles) { var handle = handles[h]; if (handle) { - h.close(); - delete handles[handle]; + handle.close(); + delete handles[h]; } } }