Skip to content

Commit

Permalink
A little fix ( ͡• ͜ʖ ͡• ) (#7)
Browse files Browse the repository at this point in the history
Joined to start the main message queue maintenance thread
  • Loading branch information
Oct-autumn authored Nov 19, 2021
1 parent eac7dd2 commit 2f47c02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/cn/CSUOSA/ChattingRoomServer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class Main
public static ConcurrentHashMap<String, ChannelInfo> ChannelList;
public static ConcurrentHashMap<Long, MessageListEntry> MsgList;
public static UserMapTimer userMapTimer = new UserMapTimer();
public static MessageListThread msgListCleaner = new MessageListThread();
public static Terminal terminal;
public static LineReader lineReader;
public static long msgCount = 0;
Expand All @@ -41,6 +42,7 @@ public static void main(String[] args)
CAC = SpringApplication.run(Main.class, args); //启动SpringBoot

new Thread(userMapTimer).start(); //启动昵称占用计时器
new Thread(msgListCleaner).start(); //启动主消息队列维护线程

try
{
Expand All @@ -60,4 +62,4 @@ public static void main(String[] args)

new Thread(new CmdProcessor()).start();
}
}
}

0 comments on commit 2f47c02

Please sign in to comment.