File tree 7 files changed +29
-26
lines changed
pubnub-kotlin/pubnub-kotlin-impl/src
main/kotlin/com/pubnub/internal/managers
test/kotlin/com/pubnub/api/legacy
7 files changed +29
-26
lines changed Original file line number Diff line number Diff line change 1
1
name : kotlin
2
- version : 10.4.0
2
+ version : 10.4.1
3
3
schema : 1
4
4
scm : github.com/pubnub/kotlin
5
5
files :
6
- - build/libs/pubnub-kotlin-10.4.0 -all.jar
6
+ - build/libs/pubnub-kotlin-10.4.1 -all.jar
7
7
sdks :
8
8
-
9
9
type : library
23
23
-
24
24
distribution-type : library
25
25
distribution-repository : maven
26
- package-name : pubnub-kotlin-10.4.0
27
- location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.4.0 /pubnub-kotlin-10.4.0 .jar
26
+ package-name : pubnub-kotlin-10.4.1
27
+ location : https://repo.maven.apache.org/maven2/com/pubnub/pubnub-kotlin/10.4.1 /pubnub-kotlin-10.4.1 .jar
28
28
supported-platforms :
29
29
supported-operating-systems :
30
30
Android :
@@ -121,6 +121,11 @@ sdks:
121
121
license-url : https://www.apache.org/licenses/LICENSE-2.0.txt
122
122
is-required : Required
123
123
changelog :
124
+ - date : 2025-01-24
125
+ version : v10.4.1
126
+ changes :
127
+ - type : bug
128
+ text : " PubNub.forceDestroy should cause okHttpClient executor service to shutDown immediately."
124
129
- date : 2025-01-21
125
130
version : v10.4.0
126
131
changes :
Original file line number Diff line number Diff line change
1
+ ## v10.4.1
2
+ January 24 2025
3
+
4
+ #### Fixed
5
+ - PubNub.forceDestroy should cause okHttpClient executor service to shutDown immediately.
6
+
1
7
## v10.4.0
2
8
January 21 2025
3
9
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
20
20
<dependency >
21
21
<groupId >com.pubnub</groupId >
22
22
<artifactId >pubnub-kotlin</artifactId >
23
- <version >10.4.0 </version >
23
+ <version >10.4.1 </version >
24
24
</dependency >
25
25
```
26
26
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RELEASE_SIGNING_ENABLED=true
18
18
SONATYPE_HOST =DEFAULT
19
19
SONATYPE_AUTOMATIC_RELEASE =false
20
20
GROUP =com.pubnub
21
- VERSION_NAME =10.4.0
21
+ VERSION_NAME =10.4.1
22
22
POM_PACKAGING =jar
23
23
24
24
POM_NAME =PubNub SDK
Original file line number Diff line number Diff line change @@ -659,22 +659,6 @@ proxy-from-env@^1.1.0:
659
659
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
660
660
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
661
661
662
-
663
- version "8.4.1"
664
- resolved "https://registry.yarnpkg.com/pubnub/-/pubnub-8.4.1.tgz#5f6f19e84d3187dc8aee0a458bd6b05e90d43e6a"
665
- integrity sha512-mPlwVoHJDWPasZx52UfSMiPX5TATm5A+ficSogyqDqTQ4w5EQnwxH+PJdsWc0mPnlT051jM1vIISMeM0fQ30CQ==
666
- dependencies :
667
- agentkeepalive "^3.5.2"
668
- buffer "^6.0.3"
669
- cbor-js "^0.1.0"
670
- cbor-sync "^1.0.4"
671
- form-data "^4.0.0"
672
- lil-uuid "^0.1.1"
673
- node-fetch "^2.7.0"
674
- proxy-agent "^6.3.0"
675
- react-native-url-polyfill "^2.0.0"
676
- text-encoding "^0.7.0"
677
-
678
662
679
663
version "8.6.0"
680
664
resolved "https://registry.yarnpkg.com/pubnub/-/pubnub-8.6.0.tgz#75524e7ed3653090652d160ce83ac089362a0379"
Original file line number Diff line number Diff line change @@ -172,11 +172,19 @@ class RetrofitManager(
172
172
) {
173
173
if (client != null ) {
174
174
client.dispatcher.cancelAll()
175
+
176
+ val executorService = client.dispatcher.executorService
177
+ executorService.shutdown()
175
178
if (force) {
176
- client.connectionPool.evictAll()
177
- val executorService = client.dispatcher.executorService
178
- executorService.shutdown()
179
+ try {
180
+ if (! executorService.awaitTermination(100 , TimeUnit .MILLISECONDS )) {
181
+ executorService.shutdownNow()
182
+ }
183
+ } catch (e: InterruptedException ) {
184
+ executorService.shutdownNow()
185
+ }
179
186
}
187
+ client.connectionPool.evictAll()
180
188
}
181
189
}
182
190
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class PubNubImplTest : BaseTest() {
56
56
fun getVersionAndTimeStamp () {
57
57
val version = PubNubImpl .SDK_VERSION
58
58
val timeStamp = PubNubImpl .timestamp()
59
- assertEquals(" 10.4.0 " , version)
59
+ assertEquals(" 10.4.1 " , version)
60
60
assertTrue(timeStamp > 0 )
61
61
}
62
62
You can’t perform that action at this time.
0 commit comments