mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-16 08:42:34 +00:00
Fix crashing when not waiting for pin, yet /pin is called
This commit is contained in:
parent
1c28214260
commit
8da7739728
@ -391,6 +391,12 @@ void pin(std::shared_ptr<typename SimpleWeb::ServerBase<T>::Response> response,
|
|||||||
|
|
||||||
pt::ptree tree;
|
pt::ptree tree;
|
||||||
|
|
||||||
|
if(map_id_sess.empty()) {
|
||||||
|
response->write(SimpleWeb::StatusCode::client_error_im_a_teapot);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto &sess = std::begin(map_id_sess)->second;
|
auto &sess = std::begin(map_id_sess)->second;
|
||||||
getservercert(sess, tree, request->path_match[1]);
|
getservercert(sess, tree, request->path_match[1]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user