Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:HEROLABS/herolabs-apns

  • Loading branch information...
commit a3a7a1f0954e5b95459ae9d74a06cf3f8c48c262 2 parents d8be07d + 8212910
@niclasmeier niclasmeier authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  project.clj
  2. +4 −4 src/herolabs/apns/push.clj
View
2  project.clj
@@ -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"]
View
8 src/herolabs/apns/push.clj
@@ -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))
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.