change file
parent
c47045028a
commit
c4e740aa92
|
@ -67,8 +67,8 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||||
m_FriendsLocalSimConnector = friendsConn;
|
m_FriendsLocalSimConnector = friendsConn;
|
||||||
m_realHandler = new HGFriendsServerPostHandler(service, uas, friendsConn);
|
m_realHandler = new HGFriendsServerPostHandler(service, uas, friendsConn);
|
||||||
|
|
||||||
if (File.Exists("../friends.txt"))
|
if (File.Exists("friends.txt"))
|
||||||
m_fixCache = new List<String>(File.ReadAllLines("../friends.txt"));
|
m_fixCache = new List<String>(File.ReadAllLines("friends.txt"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Stream GenerateStreamFromString(string s)
|
public static Stream GenerateStreamFromString(string s)
|
||||||
|
@ -113,7 +113,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
|
||||||
|
|
||||||
lock(m_fixCache)
|
lock(m_fixCache)
|
||||||
{
|
{
|
||||||
File.WriteAllLines("../friends.txt", m_fixCache.ToArray());
|
File.WriteAllLines("friends.txt", m_fixCache.ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_realHandler.Handle(path, GenerateStreamFromString(body), httpRequest, httpResponse);
|
return m_realHandler.Handle(path, GenerateStreamFromString(body), httpRequest, httpResponse);
|
||||||
|
|
Loading…
Reference in New Issue