lib/stack/server.rb in stack-0.0.7 vs lib/stack/server.rb in stack-0.0.8
- old
+ new
@@ -19,9 +19,11 @@
self.thread = Thread.new {
self.http_server.start
}
+ trap("INT") { self.http_server.shutdown }
+
self.thread.join()
end
end
end
\ No newline at end of file