Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mod_prs_main.py')
-rw-r--r--modules/mod_prs_main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mod_prs_main.py b/modules/mod_prs_main.py
index f2c6d32..8c6a4cc 100644
--- a/modules/mod_prs_main.py
+++ b/modules/mod_prs_main.py
@@ -8,7 +8,7 @@ from __main__ import _
def initializeUser(source, resource, prs):
logger.debug("User not in the transport, but presence received. Searching in database (jid: %s)" % source)
- with Database(DatabaseFile) as db:
+ with Database(DatabaseFile, Semaphore) as db:
db("select jid,username from users where jid=?", (source,))
data = db.fetchone()
if data:
@@ -20,7 +20,7 @@ def initializeUser(source, resource, prs):
user.initialize(False, True, resource)
runThread(executeHandlers, ("prs01", (source, prs)))
else:
- crashLog("user.connect", 0, False)
+ crashLog("user.connect", False)
sendMessage(Component, jid, TransportID, _("Auth failed! If this error repeated, please register again. This incident will be reported."))
except Exception:
crashLog("prs.init")