Skip to content

Commit 9fdfe9d

Browse files
authored
Update README.md
1 parent 954e45a commit 9fdfe9d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,9 @@ StatusCallback status = (info, context) => {
4949
break;
5050

5151
case ConnectionState.ClosedByPeer:
52-
server.CloseConnection(info.connection);
53-
Console.WriteLine("Client disconnected - ID: " + info.connection + ", IP: " + info.connectionInfo.address.GetIP());
54-
break;
55-
5652
case ConnectionState.ProblemDetectedLocally:
5753
server.CloseConnection(info.connection);
58-
Console.WriteLine("Client unable to connect");
54+
Console.WriteLine("Client disconnected - ID: " + info.connection + ", IP: " + info.connectionInfo.address.GetIP());
5955
break;
6056
}
6157
};
@@ -114,13 +110,11 @@ StatusCallback status = (info, context) => {
114110
break;
115111

116112
case ConnectionState.ClosedByPeer:
113+
case ConnectionState.ProblemDetectedLocally:
117114
client.CloseConnection(connection);
118115
Console.WriteLine("Client disconnected from server");
119116
break;
120117

121-
case ConnectionState.ProblemDetectedLocally:
122-
client.CloseConnection(connection);
123-
Console.WriteLine("Client unable to connect");
124118
break;
125119
}
126120
};

0 commit comments

Comments
 (0)