File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
lib/src/main/java/ua/naiksoftware/stomp Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -174,11 +174,7 @@ public Completable send(String destination, String data) {
174
174
public Completable send (@ NonNull StompMessage stompMessage ) {
175
175
Completable completable = connectionProvider .send (stompMessage .compile (legacyWhitespace ));
176
176
CompletableSource connectionComplete = getConnectionStream ()
177
- // .filter(isConnected -> isConnected)
178
- .filter (isConnected -> {
179
- Log .d (TAG , "Send " + stompMessage + "filtered " + isConnected );
180
- return isConnected ;
181
- })
177
+ .filter (isConnected -> isConnected )
182
178
.firstElement ().ignoreElement ();
183
179
return completable
184
180
.startWith (connectionComplete );
@@ -248,8 +244,7 @@ else if (!streamMap.containsKey(destPath))
248
244
getMessageStream ()
249
245
.filter (msg -> pathMatcher .matches (destPath , msg ))
250
246
.toFlowable (BackpressureStrategy .BUFFER )
251
- .doFinally (() -> unsubscribePath (destPath ).subscribe ())
252
- .share ())
247
+ .share ()).doFinally (() -> unsubscribePath (destPath ).subscribe ())
253
248
);
254
249
return streamMap .get (destPath );
255
250
}
You can’t perform that action at this time.
0 commit comments