Skip to content

Commit 7f094f9

Browse files
committed
chore: logging
1 parent 43e8ea4 commit 7f094f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/spp/protocol/instrument/command/LiveInstrumentCommand.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ data class LiveInstrumentCommand(
4141
return json
4242
}
4343

44+
fun isDispatchable(): Boolean {
45+
if (commandType == CommandType.SET_INITIAL_INSTRUMENTS) return true
46+
return instruments.isNotEmpty() || locations.isNotEmpty()
47+
}
48+
4449
override fun toString(): String {
4550
return buildString {
4651
append("LiveInstrumentCommand(")

0 commit comments

Comments
 (0)