             }
         }
         
-        delayedPerformAction(self, action, &jLoggerErrorsQueue)
+        delayedPerformAction(self, action, jLoggerErrorsQueue)
     }
 }

    let action: SimpleBlock
}

private var nsLogErrorsQueue  : [ErrorWithAction] = []
private var jLoggerErrorsQueue: [ErrorWithAction] = []

private func delayedPerformAction(error: NSError, action: SimpleBlock, inout queue: [ErrorWithAction])
{
    if firstMatch(queue, { $0.error === error }) != nil {
        return
    }
    
    queue.append(ErrorWithAction(error: error, action: action))
    
    if queue.count == 1 {
        
        dispatch_async(dispatch_get_main_queue(), {
            
            let tmpQueue = queue
            queue.removeAll(keepCapacity: true)
            for info in tmpQueue {
                info.action()
            }

            }
        }
        
        delayedPerformAction(self, action, nsLogErrorsQueue)
    }
    
    func writeErrorWithJLogger() {
