http-api: Run http calls on the IO thread

This commit is contained in:
Owain van Brakel
2019-07-19 04:16:48 +02:00
parent 52b69c35dc
commit 786e2bb729
3 changed files with 3 additions and 3 deletions

View File

@@ -827,7 +827,7 @@ public class ChatCommandsPlugin extends Plugin
{
ItemPrice item = retrieveFromList(results, search);
CLIENT.lookupItem(item.getId())
.subscribeOn(Schedulers.single())
.subscribeOn(Schedulers.io())
.subscribe(
(osbresult) ->
clientThread.invoke(() ->

View File

@@ -370,7 +370,7 @@ public class ExaminePlugin extends Plugin
{
int finalQuantity = quantity;
CLIENT.lookupItem(id)
.subscribeOn(Schedulers.single())
.subscribeOn(Schedulers.io())
.subscribe(
(osbresult) ->
clientThread.invoke(() ->

View File

@@ -551,7 +551,7 @@ public class GrandExchangePlugin extends Plugin
}
CLIENT.lookupItem(itemId)
.subscribeOn(Schedulers.single())
.subscribeOn(Schedulers.io())
.subscribe(
(osbresult) ->
clientThread.invoke(() ->