Skip to content

Commit

Permalink
Android: VncCanvas: fix crash when cancelling connection init
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Aug 16, 2023
1 parent a0ab65a commit f6f486d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,12 @@ public void onFramebufferUpdateFinished() {
public void onNewFramebufferSize(int w, int h) {
// this triggers an update on what the canvas thinks about cursor position.
// without this, the pointer highlight is off by some value after framebuffer size change
handler.post(() -> pan(0, 0));
handler.post(() -> {
try {
pan(0, 0);
} catch (Exception ignored) {
}
});
}

@Override
Expand Down

0 comments on commit f6f486d

Please sign in to comment.