Finish pipeline when an exception occurs.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / Pipeline.java
index f36f3c9..d9efcae 100644 (file)
@@ -285,12 +285,15 @@ public class Pipeline {
                                } catch (IOException e) {
                                        /* TODO */
                                        e.printStackTrace();
+                                       break;
                                } catch (InterruptedException e) {
                                        /* TODO */
                                        e.printStackTrace();
+                                       break;
                                } catch (ExecutionException e) {
                                        /* TODO */
                                        e.printStackTrace();
+                                       break;
                                }
                        }
                }