session: use temp session base

This commit is contained in:
TheRealNull
2020-01-12 22:19:23 -05:00
parent 2febfd2f2c
commit f4d136bd88
2 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ class SessionClient
{
Observable<UUID> openSession()
{
final HttpUrl url = RuneLiteAPI.getSessionBase();
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
.addPathSegment("new")
.build();
return Observable.fromCallable(() ->
{
@@ -56,7 +58,7 @@ class SessionClient
{
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
.addPathSegment("ping")
.addQueryParameter("session", uuid.toString())
.addQueryParameter("uuid", uuid.toString())
.build();
return Completable.fromAction(() ->