We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf6eb6 commit d2cf7f2Copy full SHA for d2cf7f2
app/src/main/java/com/jim/sharetocomputer/WebServerService.kt
@@ -62,10 +62,10 @@ class WebServerService : Service() {
62
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
63
MyLog.i("onStartCommand")
64
startForeground(NOTIFICATION_ID, createNotification())
65
- val port = findFreePort()
66
intent?.getParcelableExtra<ShareRequest>(EXTRA_REQUEST)?.let { request ->
67
webServer?.stop()
68
stopper?.cancel()
+ val port = findFreePort()
69
webServer = when (request) {
70
is ShareRequest.ShareRequestText -> get<WebServerText>(parameters = { parametersOf(port) }).apply {
71
setText(
0 commit comments