Skip to content

Commit

Permalink
don't initialize SourceKit twice (#266)
Browse files Browse the repository at this point in the history
if calling both initializeSourceKit and initializeSourceKitFailable
  • Loading branch information
jpsim authored Oct 13, 2016
1 parent 9c9c0b2 commit b6cc96c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SourceKittenFramework/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6cc96c

Please sign in to comment.