File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,17 @@ static void Main( string[] args ) {
7878 Console . WriteLine ( "** Server is now ready. Type /Shutdown to exit safely. **" ) ;
7979
8080 while ( ! Server . IsShuttingDown ) {
81- string cmd = Console . ReadLine ( ) ;
81+ string cmd = null ;
82+ try {
83+ cmd = Console . ReadLine ( ) ;
84+ } catch ( ArgumentException ex ) {
85+ // ArgumentException is raised on Mono when you type a message into a large CLI window,
86+ // resize the CLI window to be smaller, and try to backspace when the message is biger
87+ // than the smaller resized CLI window
88+ Logger . Log ( LogType . Error , "Error when reading input: " + ex ) ;
89+ continue ;
90+ }
91+
8292 if ( cmd == null ) {
8393 Console . WriteLine (
8494 "*** Received EOF from console. You will not be able to type anything in console any longer. ***" ) ;
You can’t perform that action at this time.
0 commit comments