mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
http: Save last-used port.
This is necessary for better caching, in case you share often.
This commit is contained in:
1 parent
66479add92
commit
c3e70c11f8
3 files changed
+10
-2
No files matched your search
@@ -155,9 +155,12 @@ static void ExecuteServer() {
|
||||
http->RegisterHandler(pair.first.c_str(), handler);
|
||||
}
|
||||
|
||||
http->Listen(0);
|
||||
if (!http->Listen(g_Config.iRemoteISOPort)) {
|
||||
http->Listen(0);
|
||||
}
|
||||
UpdateStatus(ServerStatus::RUNNING);
|
||||
|
||||
g_Config.iRemoteISOPort = http->Port();
|
||||
RegisterServer(http->Port());
|
||||
double lastRegister = real_time_now();
|
||||
while (RetrieveStatus() == ServerStatus::RUNNING) {
|
||||
|
||||
Reference in new issue
Block a user