mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +00:00
comments + todo
This commit is contained in:
1 parent
ff5a5204c9
commit
6c60f220eb
2 files changed
+8
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
# Todo List
|
||||||
|
- Redo the entire download process. Currently it is very very clunky, and the implementation is terrible. It essentially acts as a second client and it would be much better if this was either implemented as part of the original client (server-sided client), or if the entire download flow was redone both client and server side.
|
||||||
@@ -138,6 +138,7 @@ impl Client {
|
|||||||
// I think I will simply keep a counter around that will
|
// I think I will simply keep a counter around that will
|
||||||
// track what the next mod is per client.
|
// track what the next mod is per client.
|
||||||
// TODO: Clean this up. It also needs to be moved out of the client code IMO
|
// TODO: Clean this up. It also needs to be moved out of the client code IMO
|
||||||
|
|
||||||
let id = self.read_raw(1).await?[0] as usize;
|
let id = self.read_raw(1).await?[0] as usize;
|
||||||
debug!("HandleDownload connection for client id: {}", id);
|
debug!("HandleDownload connection for client id: {}", id);
|
||||||
|
|
||||||
@@ -151,6 +152,11 @@ impl Client {
|
|||||||
|
|
||||||
*next_id += 1;
|
*next_id += 1;
|
||||||
|
|
||||||
|
if *next_id >= config.mods.len() {
|
||||||
|
// I think this is where the connection should be closed, instead of after
|
||||||
|
// just 1 mod.
|
||||||
|
}
|
||||||
|
|
||||||
bmod.0.clone()
|
bmod.0.clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user