Skip to content

Commit

Permalink
feat: clear jarrays when stopped
Browse files Browse the repository at this point in the history
When the socket server is stopped, the JArrays are cleared.
  • Loading branch information
TGRHavoc committed May 17, 2019
1 parent 9167946 commit f199f94
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Binary file added libs/Live Map.dll
Binary file not shown.
Binary file added libs/Newtonsoft.Json.dll
Binary file not shown.
Binary file added libs/websocket-sharp.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions src/Live Map/LiveMap.cs
Expand Up @@ -48,6 +48,9 @@ public LiveMap(int listenPort)

public void stop()
{
playerLocations.Clear();
blipLocations.Clear();

file.Flush();
wssv.Stop();
}
Expand Down

0 comments on commit f199f94

Please sign in to comment.