mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-19 07:10:56 +00:00
Pairing doesn't work if a stream is in progress
This commit is contained in:
@@ -227,6 +227,11 @@ void client_pair(const char *address) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentGame != 0) {
|
||||||
|
fprintf(stderr, "The computer is currently in a game. You must close the game before pairing.\n");
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
char pin[5];
|
char pin[5];
|
||||||
sprintf(pin, "%d%d%d%d", (int)random() % 10, (int)random() % 10, (int)random() % 10, (int)random() % 10);
|
sprintf(pin, "%d%d%d%d", (int)random() % 10, (int)random() % 10, (int)random() % 10, (int)random() % 10);
|
||||||
printf("Please enter the following PIN on the target PC: %s\n", pin);
|
printf("Please enter the following PIN on the target PC: %s\n", pin);
|
||||||
|
|||||||
Reference in New Issue
Block a user