openvidu-server: webhook sender uses single thread executor

pull/508/head
pabloFuente 2020-06-17 18:11:50 +02:00
parent 7085bb899b
commit a4fcf90745
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class HttpWebhookSender {
private List<Header> customHeaders; private List<Header> customHeaders;
private List<CDREventName> events; private List<CDREventName> events;
private ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); private ExecutorService executor = Executors.newSingleThreadExecutor();
public HttpWebhookSender(String httpEndpoint, List<Header> headers, List<CDREventName> events) { public HttpWebhookSender(String httpEndpoint, List<Header> headers, List<CDREventName> events) {
this.httpEndpoint = httpEndpoint; this.httpEndpoint = httpEndpoint;