File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl WatchCommand {
115
115
clear_screen : self . clear ,
116
116
has_ever_built : false ,
117
117
watched_changes : source_code_rx,
118
- uppificator_pauser : pause_tx,
118
+ uppificator_pauser : pause_tx. clone ( ) ,
119
119
} ;
120
120
121
121
let mut uppificator = Uppificator {
@@ -205,7 +205,9 @@ impl WatchCommand {
205
205
// break out its run loop. This will cause the `uppificator_handle` future to
206
206
// complete, which will cause the select to return.
207
207
_ = ctrlc:: set_handler ( move || {
208
- _ = stop_tx. send ( Uuid :: new_v4 ( ) ) ;
208
+ let _ = stop_tx. send ( Uuid :: new_v4 ( ) ) ;
209
+ // Make sure the loop that processes the stop signal sees it
210
+ let _ = futures:: executor:: block_on ( pause_tx. send ( Pause :: Unpause ) ) ;
209
211
} ) ;
210
212
211
213
// As noted above, the most likely future to complete is the uppificator on a Ctrl+C.
You can’t perform that action at this time.
0 commit comments