Skip to content

Commit

Permalink
Fix bad naming
Browse files Browse the repository at this point in the history
  • Loading branch information
markushi committed Sep 1, 2023
1 parent f73ff15 commit eb98375
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void register(final @NotNull IHub hub, final @NotNull SentryOptions optio
connectionStatusProvider = options.getConnectionStatusProvider();
connectionStatusProvider.addConnectionStatusObserver(this);

run(hub, options);
sendCachedEnvelopes(hub, options);
}

@Override
Expand All @@ -93,12 +93,12 @@ public void close() throws IOException {
@Override
public void onConnectionStatusChanged(IConnectionStatusProvider.ConnectionStatus status) {
if (hub != null && options != null) {
run(hub, options);
sendCachedEnvelopes(hub, options);
}
}

@SuppressWarnings("FutureReturnValueIgnored")
private synchronized void run(@NotNull IHub hub, @NotNull SentryOptions options) {
private synchronized void sendCachedEnvelopes(@NotNull IHub hub, @NotNull SentryOptions options) {

// assume we're connected unless overruled by the provider
@NotNull
Expand Down

0 comments on commit eb98375

Please sign in to comment.