diff --git a/server.R b/server.R index 8138722..564df32 100644 --- a/server.R +++ b/server.R @@ -409,6 +409,10 @@ shinyServer(function(input, output, session) { content = function(file) { write.csv(dataM(), file, row.names=FALSE) }) ### + + session$onSessionEnded(function() { + stopApp() + }) })