Skip to content

Commit

Permalink
Use shutdown instead of close
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSinn committed Oct 1, 2024
1 parent cea7f7b commit 27a5fd6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private Void handleSSEError(FaultEvent faultEvent) {
private Void handleSSEStarted(StartedEvent startedEvent) {
isSSEConnected = true;
DevCycleLogger.debug("SSE Connected - setting polling interval to " + pollingIntervalSSEMS);
scheduler.close();
scheduler.shutdown();
scheduler = setupScheduler();
scheduler.scheduleAtFixedRate(getConfigRunnable, 0, pollingIntervalSSEMS, TimeUnit.MILLISECONDS);
return null;
Expand Down Expand Up @@ -259,7 +259,6 @@ private ProjectConfig getConfigResponse(Call<ProjectConfig> call) throws DevCycl

private void stopPolling() {
pollingEnabled = false;

scheduler.shutdown();
}

Expand Down

0 comments on commit 27a5fd6

Please sign in to comment.