parent
a84f073a0a
commit
1c66511bff
@ -781,7 +781,9 @@ public abstract class AbsSender {
|
||||
// Simplified methods
|
||||
|
||||
private void sendApiMethodAsync(BotApiMethod method, SentCallback callback) {
|
||||
exe.submit(() -> {
|
||||
exe.submit(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).build();
|
||||
String url = getBaseUrl() + method.getPath();
|
||||
@ -801,6 +803,8 @@ public abstract class AbsSender {
|
||||
} catch (IOException e) {
|
||||
callback.onException(method, e);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user