mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 23:35:47 +00:00
Unpair when pairing failed
This commit is contained in:
parent
4edda44a31
commit
61812554c5
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Moonlight Embedded.
|
* This file is part of Moonlight Embedded.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Iwan Timmer
|
* Copyright (C) 2015-2016 Iwan Timmer
|
||||||
*
|
*
|
||||||
* Moonlight is free software; you can redistribute it and/or modify
|
* Moonlight is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -538,6 +538,9 @@ int gs_pair(PSERVER_DATA server, char* pin) {
|
|||||||
server->paired = true;
|
server->paired = true;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
if (ret != GS_OK)
|
||||||
|
gs_unpair(server);
|
||||||
|
|
||||||
if (result != NULL)
|
if (result != NULL)
|
||||||
free(result);
|
free(result);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user