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:
parent
3b95555547
commit
7a87743aaf
|
|
@ -93,6 +93,7 @@ do_stop() {
|
|||
|
||||
do_restart() {
|
||||
do_stop
|
||||
sleep 0.5
|
||||
do_start
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ do_stop() {
|
|||
|
||||
do_restart() {
|
||||
do_stop
|
||||
sleep 0.5
|
||||
do_start
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user