Skip to content
Commit 382b70e0 authored by Matt Selsky's avatar Matt Selsky Committed by Matt Selsky
Browse files

Simplify ntpq's do_EOF and do_exit functions

From the help for Cmd.cmdloop:

"This method will return when the postcmd() method returns a true value. The
stop argument to postcmd() is the return value from the command’s corresponding
do_*() method."

So any do_*() method that returns True will exit cleanly.
parent 767cb8a9
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment