Skip to content

Commit bf30b0e

Browse files
committed
Initialize lastUse to prevent shutdown race. Fixes #62
1 parent 7cd942b commit bf30b0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ func (pool *AppPool) LaunchApp(name, dir string) (*App, error) {
298298
dir: dir,
299299
pool: pool,
300300
readyChan: make(chan struct{}),
301+
lastUse: time.Now(),
301302
}
302303

303304
app.eventAdd("booting_app", "socket", socket)
@@ -354,6 +355,7 @@ func (pool *AppPool) readProxy(name, path string) (*App, error) {
354355
Events: pool.Events,
355356
pool: pool,
356357
readyChan: make(chan struct{}),
358+
lastUse: time.Now(),
357359
}
358360

359361
data = bytes.TrimSpace(data)

0 commit comments

Comments
 (0)