Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 4738:e95458712782
mod_bosh: Remove unused import of net.httpserver
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 00:45:33 +0100 |
parent | 4725:d085db6285db |
child | 4767:8c33490b22c3 |
comparison
equal
deleted
inserted
replaced
4737:7b9e2a8c4710 | 4738:e95458712782 |
---|---|
8 | 8 |
9 module:set_global(); -- Global module | 9 module:set_global(); -- Global module |
10 | 10 |
11 local hosts = _G.hosts; | 11 local hosts = _G.hosts; |
12 local new_xmpp_stream = require "util.xmppstream".new; | 12 local new_xmpp_stream = require "util.xmppstream".new; |
13 local httpserver = require "net.httpserver"; | |
14 local sm = require "core.sessionmanager"; | 13 local sm = require "core.sessionmanager"; |
15 local sm_destroy_session = sm.destroy_session; | 14 local sm_destroy_session = sm.destroy_session; |
16 local new_uuid = require "util.uuid".generate; | 15 local new_uuid = require "util.uuid".generate; |
17 local fire_event = prosody.events.fire_event; | 16 local fire_event = prosody.events.fire_event; |
18 local core_process_stanza = core_process_stanza; | 17 local core_process_stanza = core_process_stanza; |
179 if session.bosh_terminate then | 178 if session.bosh_terminate then |
180 session.log("debug", "Closing session with %d requests open", #session.requests); | 179 session.log("debug", "Closing session with %d requests open", #session.requests); |
181 session:close(); | 180 session:close(); |
182 return nil; | 181 return nil; |
183 else | 182 else |
184 return true; -- Inform httpserver we shall reply later | 183 return true; -- Inform http server we shall reply later |
185 end | 184 end |
186 end | 185 end |
187 end | 186 end |
188 | 187 |
189 | 188 |