Skip to content

Commit

Permalink
Fix: Java exception 'Exception' is never thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
rod-hynes committed Nov 21, 2024
1 parent c2ffc7d commit 97a2cdb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions MobileLibrary/Android/PsiphonTunnel/PsiphonTunnel.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,9 @@ private PsiphonTunnel(HostService hostService) {
mNetworkMonitor = new NetworkMonitor(new NetworkMonitor.NetworkChangeListener() {
@Override
public void onChanged() {
try {
// networkChanged initiates a reset of all open network
// connections, including a tunnel reconnect.
Psi.networkChanged();
} catch (Exception e) {
mHostService.onDiagnosticMessage("reconnect error: " + e);
}
// networkChanged initiates a reset of all open network
// connections, including a tunnel reconnect.
Psi.networkChanged();
}
});
}
Expand Down

0 comments on commit 97a2cdb

Please sign in to comment.