diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-08-10 17:35:01 -0700 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-08-10 17:35:01 -0700 |
commit | 9598c2638ec98b6a2e4ea5a022dff0f9bbe73039 (patch) | |
tree | 96994015107e5a8f915fb5e8281e32ed6c48aecc /Server.scala | |
parent | 7c3bf500f086bd741703f3c5c87d7a74dd01703c (diff) | |
download | workbench-9598c2638ec98b6a2e4ea5a022dff0f9bbe73039.tar.gz workbench-9598c2638ec98b6a2e4ea5a022dff0f9bbe73039.tar.bz2 workbench-9598c2638ec98b6a2e4ea5a022dff0f9bbe73039.zip |
Correctly kill the server on unload, making the sbt `reload` command work as well as auto-importing into IntelliJ
Diffstat (limited to 'Server.scala')
-rw-r--r-- | Server.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Server.scala b/Server.scala index af4b6b6..b9773a7 100644 --- a/Server.scala +++ b/Server.scala @@ -74,4 +74,7 @@ class Server(url: String, port: Int, bootSnippet: String) extends SimpleRoutingA def msg[T: Writer](t: T) = { pubSub ! upickle.writeJs(t) } + def kill() = { + system.shutdown() + } }
\ No newline at end of file |