screencopy: Pop first screencopy instead of last
Browse files at this commit257124288711bc9bc12cf7b6e159540d109a632dParent: 6f92b321 changed file +1 -1
src/protocols/screencopy.rsmodified+1 -1
| @@ -61,7 +61,7 @@ impl ScreencopyQueue { | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | pub fn pop(&mut self) -> Screencopy { | 63 | pub fn pop(&mut self) -> Screencopy { |
| 64 | - self.screencopies.pop().unwrap() | 64 | + self.screencopies.remove(0) |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | pub fn remove_output(&mut self, output: &Output) { | 67 | pub fn remove_output(&mut self, output: &Output) { |