Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix callback bug when authing via a provided token
Browse files Browse the repository at this point in the history
  • Loading branch information
pvzig authored Jul 26, 2016
1 parent df66176 commit 1889ffe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SlackKit/Sources/SlackKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public final class SlackKit: OAuthDelegate {
public init(withAPIToken token: String, clientOptions: ClientOptions = ClientOptions()) {
self.clientOptions = clientOptions
let client = Client(apiToken: token)
self.onClientInitalization?(client)
dispatch_async(dispatch_get_main_queue(), {
self.onClientInitalization?(client)
})
clients[token] = client
client.connect(options: self.clientOptions)
}
Expand Down

0 comments on commit 1889ffe

Please sign in to comment.