mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 16:03:40 +08:00
Fix unable to save game data occasionally (#1194)
* Fix unable to save game data occasionally * No self-kicking * Game data synchronization * finally * prevent duplicated saving * reverse changing * keep the previous code * Update GameServerInitializer.java * Update GameSession.java * remove sanity check because of try block * a session needs can be created without a pipeline.
This commit is contained in:
committed by
GitHub
Unverified
parent
934fb5873a
commit
ecf7a81ad1
@@ -13,8 +13,10 @@ public class GameServerInitializer extends KcpServerInitializer {
|
||||
|
||||
@Override
|
||||
protected void initChannel(UkcpChannel ch) throws Exception {
|
||||
ChannelPipeline pipeline = ch.pipeline();
|
||||
GameSession session = new GameSession(server);
|
||||
pipeline.addLast(session);
|
||||
ChannelPipeline pipeline=null;
|
||||
if(ch!=null){
|
||||
pipeline = ch.pipeline();
|
||||
}
|
||||
new GameSession(server,pipeline);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user