Don't call observe() on write()
This commit is contained in:
parent
d5ef860d15
commit
6ba43852a3
@ -4,7 +4,7 @@ kotlin.code.style=official
|
|||||||
specifyKotlinAsDependency=false
|
specifyKotlinAsDependency=false
|
||||||
|
|
||||||
projectGroup=ru.dbotthepony.kommons
|
projectGroup=ru.dbotthepony.kommons
|
||||||
projectVersion=2.9.10
|
projectVersion=2.9.11
|
||||||
|
|
||||||
guavaDepVersion=33.0.0
|
guavaDepVersion=33.0.0
|
||||||
gsonDepVersion=2.8.9
|
gsonDepVersion=2.8.9
|
||||||
|
@ -757,10 +757,11 @@ class DelegateSyncher : Observer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns null of this remote is clean.
|
* Returns null of this remote is clean.
|
||||||
|
*
|
||||||
|
* [DelegateSyncher.observe] is not called automatically for performance
|
||||||
|
* reasons, you must call it manually.
|
||||||
*/
|
*/
|
||||||
fun write(): FastByteArrayOutputStream? {
|
fun write(): FastByteArrayOutputStream? {
|
||||||
this@DelegateSyncher.observe()
|
|
||||||
|
|
||||||
if (dirty.isNotEmpty()) {
|
if (dirty.isNotEmpty()) {
|
||||||
val data = FastByteArrayOutputStream()
|
val data = FastByteArrayOutputStream()
|
||||||
val stream = DataOutputStream(data)
|
val stream = DataOutputStream(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user