Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
f20c9a0d
Verified
Commit
f20c9a0d
authored
6 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed crash where multiple activities at the same time would subscribe
parent
19ac2d78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/src/main/java/de/kuschku/libquassel/session/Session.kt
+6
-4
6 additions, 4 deletions
lib/src/main/java/de/kuschku/libquassel/session/Session.kt
with
6 additions
and
4 deletions
lib/src/main/java/de/kuschku/libquassel/session/Session.kt
+
6
−
4
View file @
f20c9a0d
...
...
@@ -71,8 +71,10 @@ class Session(
)
override
val
state
=
coreConnection
.
state
override
val
error
=
ReusableUnicastSubject
.
create
<
Error
>()
override
val
connectionError
=
ReusableUnicastSubject
.
create
<
Throwable
>()
private
val
_error
=
ReusableUnicastSubject
.
create
<
Error
>()
override
val
error
=
_error
.
publish
().
refCount
()
private
val
_connectionError
=
ReusableUnicastSubject
.
create
<
Throwable
>()
override
val
connectionError
=
_connectionError
.
publish
().
refCount
()
override
val
aliasManager
=
AliasManager
(
this
)
override
val
backlogManager
=
BacklogManager
(
this
,
backlogStorage
)
...
...
@@ -116,7 +118,7 @@ class Session(
private
fun
handleError
(
error
:
Error
)
{
hasErroredCallback
?.
invoke
(
error
)
this
.
error
.
onNext
(
error
)
_
error
.
onNext
(
error
)
}
override
fun
handle
(
f
:
HandshakeMessage
.
ClientInitAck
):
Boolean
{
...
...
@@ -173,7 +175,7 @@ class Session(
}
fun
handleConnectionError
(
connectionError
:
Throwable
)
{
this
.
connectionError
.
onNext
(
connectionError
)
_
connectionError
.
onNext
(
connectionError
)
}
fun
addNetwork
(
networkId
:
NetworkId
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment