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

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

    let action: SimpleBlock
}

private class ActionsHolder {
    
    var queue = [ErrorWithAction]()
}

private var nsLogErrorsQueue   = ActionsHolder()
private var jLoggerErrorsQueue = ActionsHolder()

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