summaryrefslogtreecommitdiff
path: root/src/mod_bosh_sql.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-04-11 12:13:58 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-04-11 12:13:58 +0200
commitb1acd1183f1ce176a4703528d7d25b9dd3ee89f4 (patch)
tree9339705c26123538d94ad1fc62011b02517e6e98 /src/mod_bosh_sql.erl
parentUse p1_utils 1.0.8 (diff)
Rename aux.erl as misc.erl
Thanks Microsoft Windows to not support some filenames
Diffstat (limited to 'src/mod_bosh_sql.erl')
-rw-r--r--src/mod_bosh_sql.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_bosh_sql.erl b/src/mod_bosh_sql.erl
index c698efbb..0171ad8f 100644
--- a/src/mod_bosh_sql.erl
+++ b/src/mod_bosh_sql.erl
@@ -34,7 +34,7 @@ init() ->
end.
open_session(SID, Pid) ->
- PidS = aux:encode_pid(Pid),
+ PidS = misc:encode_pid(Pid),
Node = erlang:atom_to_binary(node(Pid), latin1),
case ?SQL_UPSERT(?MYNAME, "bosh",
["!sid=%(SID)s",
@@ -57,7 +57,7 @@ find_session(SID) ->
?MYNAME,
?SQL("select @(pid)s, @(node)s from bosh where sid=%(SID)s")) of
{selected, [{Pid, Node}]} ->
- try {ok, aux:decode_pid(Pid, Node)}
+ try {ok, misc:decode_pid(Pid, Node)}
catch _:{bad_node, _} -> error
end;
{selected, []} ->