Bugfix
This commit is contained in:
parent
c7c2b03ef1
commit
ed49893515
@ -34,7 +34,7 @@
|
||||
<dependency>
|
||||
<groupId>it.tdlight</groupId>
|
||||
<artifactId>tdlight-java-bom</artifactId>
|
||||
<version>2.8.5.1</version>
|
||||
<version>2.8.5.2</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -262,11 +262,11 @@ public final class InternalReactiveClient implements ClientEventsHandler, Reacti
|
||||
public void setListener(SignalListener listener) {
|
||||
logger.debug(TG_MARKER, "Setting handler of client {}", clientId);
|
||||
|
||||
var prevSignalListener = this.signalListener;
|
||||
SignalListener prevSignalListener = this.signalListener;
|
||||
if (!(prevSignalListener instanceof ReplayStartupUpdatesListener)) {
|
||||
throw new IllegalStateException("Already subscribed");
|
||||
}
|
||||
var replayStartupUpdatesListener = (ReplayStartupUpdatesListener) prevSignalListener;
|
||||
ReplayStartupUpdatesListener replayStartupUpdatesListener = (ReplayStartupUpdatesListener) prevSignalListener;
|
||||
// Set the new listener into the startup listener, then drain its startup queue
|
||||
replayStartupUpdatesListener.setNewListener(listener);
|
||||
replayStartupUpdatesListener.drain();
|
||||
|
Loading…
x
Reference in New Issue
Block a user