3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

fix express close for 3.0. you could document your shit guys

This commit is contained in:
reality 2013-01-05 01:36:36 +00:00
parent aa39fd7d4c
commit 91ba685401

View File

@ -12,8 +12,7 @@ var webInterface = function(dbot) {
res.render('index', { 'name': dbot.config.name }); res.render('index', { 'name': dbot.config.name });
}); });
var server = app.listen(dbot.config.web.webPort);
app.listen(dbot.config.web.webPort);
var reloadPages = function(pages) { var reloadPages = function(pages) {
for(var p in pages) { for(var p in pages) {
@ -40,7 +39,7 @@ var webInterface = function(dbot) {
'reloadPages': reloadPages, 'reloadPages': reloadPages,
'onDestroy': function() { 'onDestroy': function() {
app.close(); server.close();
} }
}; };
}; };