File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mantis-client/src/main/java/io/mantisrx/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ public Observable<T> call(EndpointChange endpointChange) {
144144 })
145145 .doOnUnsubscribe (() -> {
146146 try {
147- logger .warn ("Closing connections to sink of job " + jobId );
147+ logger .warn ("Closing connections to sink of job {}" , jobId );
148148 closeAllConnections ();
149149 } catch (Exception e ) {
150- Observable . error ( e );
150+ logger . warn ( "Error closing all connections to sink of job {}" , jobId , e );
151151 }
152152 })
153153 .share ()
@@ -212,7 +212,7 @@ public void call(Boolean flag) {
212212 }
213213 }
214214 return ((SinkConnection <T >) sinkConnection ).call ()
215- //.flatMap(o -> o )
215+ . takeWhile ( e -> ! nowClosed . get () )
216216 ;
217217 }
218218
You can’t perform that action at this time.
0 commit comments