- Timestamp:
- Jul 20, 2014, 3:41:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsTelnetConnection.cs
r75 r91 34 34 public void WriteLine (string s) 35 35 { 36 if (!IsClosed () && stream.CanWrite) { 37 for (int i = 0; i < s.Length; i++) { 38 WriteByte ((byte)s [i]); 36 try { 37 if (!IsClosed () && stream.CanWrite) { 38 for (int i = 0; i < s.Length; i++) { 39 WriteByte ((byte)s [i]); 40 } 41 WriteByte (10); 39 42 } 40 WriteByte (10); 43 } catch (Exception e) { 44 Log.Out("Error writing to client: " + e); 41 45 } 42 46 }
Note:
See TracChangeset
for help on using the changeset viewer.