Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
5997a3a0
Commit
5997a3a0
authored
Jun 21, 2016
by
Marek Vavrusa
Browse files
modules/daf: cleanup, proper ws closing
parent
964e8f25
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/daf/daf.js
View file @
5997a3a0
...
...
@@ -218,11 +218,9 @@ $(function() {
const
tok
=
input
.
split
(
'
'
);
if
(
dafg
.
action
[
tok
[
0
].
toLowerCase
()])
{
$
(
'
#daf-add
'
).
focus
();
$
(
this
).
close
();
}
else
if
(
dafComplete
(
this
))
{
/* No more rules after query is complete. */
item
.
remove
();
$
(
this
).
close
();
}
},
createFilter
:
function
(
input
)
{
...
...
modules/daf/daf.lua
View file @
5997a3a0
...
...
@@ -255,11 +255,12 @@ local function publish(h, ws)
end
-- Update counters when there is a new data
if
next
(
update
)
~=
nil
then
ws
:
send
(
tojson
(
update
))
ok
=
ws
:
send
(
tojson
(
update
))
else
ok
=
ws
:
send_ping
()
end
cqueues
.
sleep
(
2
)
cqueues
.
sleep
(
1
)
end
ws
:
close
()
end
-- @function Configure module
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment