summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorHorus32015-03-30 19:19:34 +0200
committerHorus32015-03-30 19:19:34 +0200
commit3b10bced81423eacca3794934a23c821cdbf1c4f (patch)
tree7baee17b918d4e1c1b368a59fc7b594cf07aa5c9 /main.go
parent9bb67e86806b38a5ecf98f9844048c675ef14d40 (diff)
downloadweb2irc-3b10bced81423eacca3794934a23c821cdbf1c4f.tar.gz
Add gracefull shutdown.
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 242e364..59775b7 100644
--- a/main.go
+++ b/main.go
@@ -34,6 +34,7 @@ func main() {
ip := os.Getenv("WEB2IRC_HTTP_IP")
port := os.Getenv("WEB2IRC_HTTP_PORT")
+ go Shutdown()
log.Println("Listening on " + ip + ":" + port)
http.ListenAndServe(ip+":"+port, nil)
}