Skip to content

Commit

Permalink
Merge branch 'master' of github.com:HEROLABS/herolabs-apns
Browse files Browse the repository at this point in the history
  • Loading branch information
niclasmeier committed Dec 6, 2012
2 parents d8be07d + 8212910 commit a3a7a1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject herolabs/apns "0.1.12"
(defproject herolabs/apns "0.1.13"
:description "A simple lightweight library to use with the Apple push notification service."
:url "https://github.com/HEROLABS/herolabs-apns"
:dependencies [[org.clojure/clojure "1.4.0"]
Expand Down
8 changes: 4 additions & 4 deletions src/herolabs/apns/push.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
sm (System/getSecurityManager)
group (if sm (.getThreadGroup sm) (.getThreadGroup (Thread/currentThread)))]
(reify ThreadFactory
(newThread [_ r] (let [t (Thread. group r (str "apns-push-pool-" (swap! number inc)) 0)
t (if (.isDaemon t) (.setDaemon t false) t)
t (if (not= Thread/NORM_PRIORITY (.getPriority t)) (.setPriority t Thread/NORM_PRIORITY) t)]
(newThread [_ r] (let [t (Thread. group r (str "apns-push-pool-" (swap! number inc)) 0)]
(when (.isDaemon t) (.setDaemon t false))
(when (not= Thread/NORM_PRIORITY (.getPriority t)) (.setPriority t Thread/NORM_PRIORITY))
t)))))))))

(def ^:private timer* (ref nil))
Expand Down Expand Up @@ -173,4 +173,4 @@
(defn prod-address
"The productive Apple internet address for the push service."
[]
(InetSocketAddress. "gateway.push.apple.com" 2195))
(InetSocketAddress. "gateway.push.apple.com" 2195))

0 comments on commit a3a7a1f

Please sign in to comment.