Skip to content

Commit

Permalink
Merge pull request #4878 from rizer1980/PR/okx-pingpongdisconnect-fix
Browse files Browse the repository at this point in the history
[okx] pingpongdisconnect fix
  • Loading branch information
timmolter authored May 19, 2024
2 parents 4cc4303 + 9af5643 commit ebb0101
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ private String getApiUrl() {

@Override
public Completable disconnect() {
streamingService.pingPongDisconnectIfConnected();
return streamingService.disconnect();
if(streamingService != null) {
streamingService.pingPongDisconnectIfConnected();
return streamingService.disconnect();
}
return null;
}

@Override
Expand Down

0 comments on commit ebb0101

Please sign in to comment.