Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit f7306e9

Browse files
committed
fix
1 parent 320047e commit f7306e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

google-cloud-bigtable-emulator-core/src/main/java/com/google/cloud/bigtable/emulator/core/EmulatorController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class EmulatorController {
4343
private static final Logger LOGGER = Logger.getLogger(EmulatorController.class.getName());
4444

4545
private final Path executable;
46-
private volatile Process process;
47-
private volatile boolean isStopped = true;
46+
private Process process;
47+
private boolean isStopped = true;
4848
private Thread shutdownHook;
4949

5050
private int port;
@@ -137,9 +137,9 @@ public synchronized void start(int port)
137137
synchronized (EmulatorController.this) {
138138
if (!isStopped) {
139139
isStopped = true;
140-
process.destroy();
141140
}
142141
}
142+
process.destroy();
143143
});
144144

145145
Runtime.getRuntime().addShutdownHook(shutdownHook);

0 commit comments

Comments
 (0)