Skip to content

Commit def01c0

Browse files
committed
updated wsnet 2.14.6
1 parent b53b1f1 commit def01c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

base/src/main/java/com/windscribe/vpn/api/ApiCallManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ open class ApiCallManager @Inject constructor(private val apiFactory: ProtectedA
169169
override fun getStaticIpList(deviceID: String?): Single<GenericResponseClass<StaticIPResponse?, ApiErrorResponse?>> {
170170
return Single.create { sub ->
171171
if (checkSession(sub)) return@create
172-
val callback = wsNetServerAPI.staticIps(preferencesHelper.sessionHash, 2) { code, json ->
172+
val callback = wsNetServerAPI.staticIps(preferencesHelper.sessionHash) { code, json ->
173173
buildResponse(sub, code, json, StaticIPResponse::class.java)
174174
}
175175
sub.setCancellable { callback.cancel() }

base/src/main/java/com/windscribe/vpn/repository/EmergencyConnectRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class EmergencyConnectRepositoryImpl(private val emergencyConnect: WSNetEmergenc
4141
cont.resume(configs)
4242
}
4343
cont.invokeOnCancellation {
44-
callback.cancel()
44+
runCatching { callback.cancel() }
4545
}
4646
}
4747
}

tools/build_wsnet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cd tools/bin || exit
77
export ANDROID_NDK_HOME="$ANDROID_NDK"
88
git clone https://github.com/Windscribe/Desktop-App.git
99
cd Desktop-App || exit
10-
git checkout eed46dbe777e53940bfff38f69ca2ebd3716ec5f
10+
git checkout v2.14.12
1111
cd libs/wsnet/tools || exit
1212
./build_android.sh
1313
cp wsnet.aar "$DST_DIR"

0 commit comments

Comments
 (0)