Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 11220fa

Browse files
committed
Prevent HTTP server initiating the kill process twice
1 parent 3917bf9 commit 11220fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/wpxf/net/http_server.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def start_http_server(non_block = false)
8484

8585
# Stop the HTTP server after it has finished processing the current request.
8686
def stop_http_server
87+
return false if @is_stopping
88+
@is_stopping = true
89+
8790
emit_info 'Stopping HTTP server...', true
8891
@http_server_kill_switch = true
8992
@http_server_thread&.exit

0 commit comments

Comments
 (0)