Skip to content

Commit

Permalink
temporal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor committed Mar 16, 2020
1 parent 45e9f76 commit 027491b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@
import com.vaadin.flow.component.dependency.CssImport;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.dependency.NpmPackage;
import com.vaadin.flow.component.internal.DeadlockDetectingCompletableFuture;
import com.vaadin.flow.component.page.PendingJavaScriptResult;
import com.vaadin.flow.component.page.PendingJavaScriptResult.JavaScriptException;
import com.vaadin.flow.component.polymertemplate.EventHandler;
import com.vaadin.flow.component.polymertemplate.PolymerTemplate;
import com.vaadin.flow.internal.JsonSerializer;
import com.vaadin.flow.server.VaadinSession;
import com.vaadin.flow.shared.Registration;

import org.slf4j.Logger;
Expand Down Expand Up @@ -523,9 +521,8 @@ public <T extends Serializable> CompletableFuture<T> call(Identifiable target, S
PendingJavaScriptResult javascriptResult = getElement().callJsFunction("callLeafletFunction",
JsonSerializer.toJson(leafletOperation));

VaadinSession session = VaadinSession.getCurrent();

CompletableFuture<T> completableFuture = new DeadlockDetectingCompletableFuture<>(session);
CompletableFuture<T> completableFuture = new CompletableFuture<>();
javascriptResult.then(value -> {
try {
ObjectMapper objectMapper = new ObjectMapper();
Expand Down

0 comments on commit 027491b

Please sign in to comment.