Fixed restart command issue

sometimes there will be an "bind: Address already in use" error,
just sleep 0.5 second when restart libev server.

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-06-01 21:31:07 +09:00
parent 3b95555547
commit 7a87743aaf
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ do_stop() {
do_restart() {
do_stop
sleep 0.5
do_start
}

View File

@ -92,6 +92,7 @@ do_stop() {
do_restart() {
do_stop
sleep 0.5
do_start
}