We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0917e95 commit ff055b1Copy full SHA for ff055b1
src/main/java/redis/embedded/RedisInstance.java
@@ -35,10 +35,7 @@ public synchronized void start() throws IOException {
35
process = new ProcessBuilder(args)
36
.directory(new File(args.get(0)).getParentFile())
37
.start();
38
- addShutdownHook("RedisInstanceCleaner", checkedToRuntime(new CheckedRunnable() {
39
- public void run() throws Exception {
40
- }
41
- }));
+ addShutdownHook("RedisInstanceCleaner", checkedToRuntime(this::stop));
42
logStream(process.getErrorStream(), System.out::println);
43
awaitServerReady();
44
0 commit comments