Skip to content

Commit 60d5dd3

Browse files
Fix Profile Check: implement missing CoreCallbackHandler members and pass fd to startLoop
1 parent e32f9b6 commit 60d5dd3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

V2rayNG/app/src/main/java/com/kiktor/v2whitelist/service/RealPingWorkerService.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ class RealPingWorkerService(
8787
var coreController: CoreController? = null
8888
try {
8989
coreController = V2RayNativeManager.newCoreController(object : CoreCallbackHandler {
90+
override fun startup(): Long = 0
91+
override fun shutdown(): Long = 0
9092
override fun onEmitStatus(p0: Long, p1: String?): Long = 0
9193
})
9294

93-
coreController.startLoop(configResult.content)
95+
coreController.startLoop(configResult.content, 0)
9496

9597
// Give it a bit of time to start
9698
Thread.sleep(300)

0 commit comments

Comments
 (0)