Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sample code to fix issue #6 #14

Merged
merged 2 commits into from
Jun 21, 2021
Merged

Update sample code to fix issue #6 #14

merged 2 commits into from
Jun 21, 2021

Conversation

saket
Copy link
Contributor

@saket saket commented Jun 21, 2021

The code used in Main.java results in the following error on my machine, but the solution mentioned in #6 seems to fix it. Thought Main.java should be updated to reflect the solution.

Exception in thread "IO, pool-1-thread-1" java.nio.channels.UnsupportedAddressTypeException
	at java.base/sun.nio.ch.Net.checkAddress(Net.java:142)
	at java.base/sun.nio.ch.DatagramChannelImpl.bindInternal(DatagramChannelImpl.java:808)
	at java.base/sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:785)
	at xyz.gianlu.zeroconf.Zeroconf$ListenerThread.addNetworkInterface(Zeroconf.java:700)
	at xyz.gianlu.zeroconf.Zeroconf.addNetworkInterface(Zeroconf.java:199)
	at xyz.gianlu.zeroconf.Zeroconf.addAllNetworkInterfaces(Zeroconf.java:238)
	at me.saket.teleport.transfer.RealNetworkDiscoverer$announceAndDiscover$$inlined$observable$1.subscribe(Various.kt:118)
	at me.saket.teleport.transfer.RealNetworkDiscoverer$announceAndDiscover$$inlined$observable$1.subscribe(Various.kt:11)
	at com.badoo.reaktive.base.SubscribeSafeKt.subscribeSafe(SubscribeSafe.kt:7)
	at com.badoo.reaktive.observable.SubscribeOnKt$subscribeOn$$inlined$observable$1$lambda$1.invoke(SubscribeOn.kt:17)
	at com.badoo.reaktive.observable.SubscribeOnKt$subscribeOn$$inlined$observable$1$lambda$1.invoke(SubscribeOn.kt)
	at com.badoo.reaktive.scheduler.ExecutorServiceScheduler$ExecutorImpl$Companion$wrapSchedulerTaskSafe$1.run(ExecutorServiceScheduler.kt:102)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

@devgianlu
Copy link
Owner

I think there's a misplaced semicolon.

@saket
Copy link
Contributor Author

saket commented Jun 21, 2021

Whoops, fixed!

@devgianlu devgianlu merged commit d3728ca into devgianlu:master Jun 21, 2021
@saket saket deleted the patch-1 branch June 21, 2021 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants