Fix #38: Add a loading message with progress on end-user interface
This commit is contained in:
		| @@ -96,7 +96,6 @@ class MyProcess implements MessageComponentInterface | ||||
|         if (preg_match("/^[a-zA-Z0-9-_ ]+$/", $msg) !== 1) { | ||||
|             return; | ||||
|         } | ||||
|         $from->send('alert:Started searching...'); | ||||
|         $client = $this->clients->offsetGet($from); | ||||
|         // If a previous request was received, we execute the new one with another client for simplicity otherwise with current file deletion approach, we can't tell the worker `search.py` that we don't care about its execution anymore. | ||||
|         if ($client->pid !== null) { | ||||
| @@ -138,7 +137,6 @@ class MyProcess implements MessageComponentInterface | ||||
|             } else { | ||||
|                 // We don't need the periodic timer anymore, as the worker finished its work and acknowledged that `websocket.php` completely read its output. | ||||
|                 $this->loop->cancelTimer($client->timer); | ||||
|                 $from->send('alert:Search finished!'); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user