From b6cc96cc045013c65777479f348ce06565e35f57 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Thu, 13 Oct 2016 00:47:36 -0700 Subject: [PATCH] don't initialize SourceKit twice (#266) if calling both initializeSourceKit and initializeSourceKitFailable --- Source/SourceKittenFramework/Request.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SourceKittenFramework/Request.swift b/Source/SourceKittenFramework/Request.swift index 33fa1627b..2316eb8e4 100644 --- a/Source/SourceKittenFramework/Request.swift +++ b/Source/SourceKittenFramework/Request.swift @@ -100,7 +100,7 @@ private let initializeSourceKit: Void = { sourcekitd_initialize() }() private let initializeSourceKitFailable: Void = { - sourcekitd_initialize() + initializeSourceKit sourcekitd_set_notification_handler() { response in if !sourcekitd_response_is_error(response!) { fflush(stdout)