src/main/kotlin/com/flightfeather/uav/UAVApplication.kt
@@ -18,12 +18,10 @@ @Autowired lateinit var electricProcessor: ElectricProcessor private val socketServer = UnderwaySocketServer() @Bean fun runner() = ApplicationRunner{ socketServer.startUnderwayServer(9030, underwayProcessor) socketServer.startElectricServer(9009, electricProcessor) UnderwaySocketServer().startUnderwayServer(9030, underwayProcessor) UnderwaySocketServer().startElectricServer(9009, electricProcessor) } }