riku
2021-12-02 a5d3f60ae4aa27744b47fcc3107be8005c3da910
src/main/kotlin/com/flightfeather/uav/socket/DeviceSession.kt
@@ -14,13 +14,11 @@
    companion object {
        private const val DEFAULT_DEVICE = "default_device"
    }
    private val deviceMap = ConcurrentHashMap<String, ChannelHandlerContext?>()
    private val deviceMap = ConcurrentHashMap<String?, ChannelHandlerContext?>()
    private val typeMap = ConcurrentHashMap<String, List<AirTypeData>>()
    fun saveDevice(deviceCode: String?, channel: ChannelHandlerContext?) {
        deviceCode?.let {
            deviceMap.put(deviceCode, channel)
        }
        deviceMap[deviceCode] = channel
    }
    fun getDevice(deviceCode: String?): ChannelHandlerContext? {