File tree 3 files changed +6
-4
lines changed
commonMain/kotlin/com/piasy/kmp/socketio/socketio
jvmTest/kotlin/com/piasy/kmp/socketio/engineio/transports
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
object Consts {
2
2
const val releaseGroup = " com.piasy"
3
3
const val releaseName = " kmp-socketio"
4
- const val releaseVersion = " 1.1.2 "
4
+ const val releaseVersion = " 1.1.3 "
5
5
6
6
val androidNS = " $releaseGroup .${releaseName.replace(' -' , ' .' )} "
7
7
}
Original file line number Diff line number Diff line change @@ -301,8 +301,10 @@ class Socket(
301
301
recvBuffer.forEach { fireEvent(it) }
302
302
recvBuffer.clear()
303
303
304
- io.packets(sendBuffer)
305
- sendBuffer.clear()
304
+ if (sendBuffer.isNotEmpty()) {
305
+ io.packets(sendBuffer)
306
+ sendBuffer.clear()
307
+ }
306
308
307
309
super .emit(EVENT_CONNECT )
308
310
}
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ class PollingXHRTest : BaseTest() {
252
252
waitExec(this )
253
253
polling.polling.close()
254
254
waitExec(this )
255
- waitExec(this , 2500 )
255
+ waitExec(this , 5000 )
256
256
257
257
coVerify(exactly = 3 ) { polling.factory.httpRequest(any(), any()) }
258
258
Logging .info(" XXPXX" , " closeOpening verify events" )
You can’t perform that action at this time.
0 commit comments