Software /
code /
prosody
Comparison
prosody @ 12971:7214baed9e9d
executables: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:29:54 +0100 |
parent | 12954:4f2accd99373 |
comparison
equal
deleted
inserted
replaced
12970:d36243e98704 | 12971:7214baed9e9d |
---|---|
53 | 53 |
54 if not pcall(require, "prosody.loader") then | 54 if not pcall(require, "prosody.loader") then |
55 pcall(require, "loader"); | 55 pcall(require, "loader"); |
56 end | 56 end |
57 | 57 |
58 local startup = require "util.startup"; | 58 local startup = require "prosody.util.startup"; |
59 local async = require "util.async"; | 59 local async = require "prosody.util.async"; |
60 | 60 |
61 -- Note: it's important that this thread is not GC'd, as some C libraries | 61 -- Note: it's important that this thread is not GC'd, as some C libraries |
62 -- that are initialized here store a pointer to it ( :/ ). | 62 -- that are initialized here store a pointer to it ( :/ ). |
63 local thread = async.runner(); | 63 local thread = async.runner(); |
64 | 64 |
81 | 81 |
82 prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback}); | 82 prosody.events.fire_event("very-bad-error", {error = err, traceback = traceback}); |
83 end | 83 end |
84 | 84 |
85 local sleep = require"socket".sleep; | 85 local sleep = require"socket".sleep; |
86 local server = require "net.server"; | 86 local server = require "prosody.net.server"; |
87 | 87 |
88 while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do | 88 while select(2, xpcall(server.loop, catch_uncaught_error)) ~= "quitting" do |
89 sleep(0.2); | 89 sleep(0.2); |
90 end | 90 end |
91 end | 91 end |