Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
cb3f5dd2
Commit
cb3f5dd2
authored
Jun 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: CLI: exit cleanly
parent
e6ab18c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
share/lua/intf/cli.lua
share/lua/intf/cli.lua
+4
-1
No files found.
share/lua/intf/cli.lua
View file @
cb3f5dd2
...
...
@@ -67,6 +67,8 @@ strip = common.strip
_
=
vlc
.
gettext
.
_
N_
=
vlc
.
gettext
.
N_
running
=
true
--[[ Setup default environement ]]
env
=
{
prompt
=
"> "
;
width
=
70
;
...
...
@@ -158,6 +160,7 @@ function shutdown(name,client)
h:broadcast("
Shutting
down
.
\
r
\
n
")
vlc.msg.info("
Requested
shutdown
.
")
vlc.misc.quit()
running = false
end
function quit(name,client)
...
...
@@ -784,7 +787,7 @@ h:listen( config.hosts or config.host or "*console" )
password
=
config
.
password
or
"admin"
--[[ The main loop ]]
while
true
do
while
running
do
local
write
,
read
=
h
:
accept_and_select
()
for
_
,
client
in
pairs
(
write
)
do
...
...
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