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:
parent
aa39fd7d4c
commit
91ba685401
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user