Skip to content

Commit 00bdec2

Browse files
committed
remove async to httpSend in sendfile
1 parent 2333121 commit 00bdec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/NtfyConnectionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public boolean sendFile(File file){
8989
.PUT(HttpRequest.BodyPublishers.ofFile(file.toPath()))
9090
.build();
9191

92-
http.sendAsync(request, HttpResponse.BodyHandlers.discarding());
92+
http.send(request, HttpResponse.BodyHandlers.discarding());
9393
return true;
9494

9595
} catch (Exception e) {

0 commit comments

Comments
 (0)