mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
fix express close for 3.0. you could document your shit guys
This commit is contained in:
parent
aa39fd7d4c
commit
91ba685401
@ -12,8 +12,7 @@ var webInterface = function(dbot) {
|
||||
res.render('index', { 'name': dbot.config.name });
|
||||
});
|
||||
|
||||
|
||||
app.listen(dbot.config.web.webPort);
|
||||
var server = app.listen(dbot.config.web.webPort);
|
||||
|
||||
var reloadPages = function(pages) {
|
||||
for(var p in pages) {
|
||||
@ -40,7 +39,7 @@ var webInterface = function(dbot) {
|
||||
'reloadPages': reloadPages,
|
||||
|
||||
'onDestroy': function() {
|
||||
app.close();
|
||||
server.close();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user