File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,9 @@ StatusCallback status = (info, context) => {
49
49
break ;
50
50
51
51
case ConnectionState .ClosedByPeer :
52
- server .CloseConnection (info .connection );
53
- Console .WriteLine (" Client disconnected - ID: " + info .connection + " , IP: " + info .connectionInfo .address .GetIP ());
54
- break ;
55
-
56
52
case ConnectionState .ProblemDetectedLocally :
57
53
server .CloseConnection (info .connection );
58
- Console .WriteLine (" Client unable to connect " );
54
+ Console .WriteLine (" Client disconnected - ID: " + info . connection + " , IP: " + info . connectionInfo . address . GetIP () );
59
55
break ;
60
56
}
61
57
};
@@ -114,13 +110,11 @@ StatusCallback status = (info, context) => {
114
110
break ;
115
111
116
112
case ConnectionState .ClosedByPeer :
113
+ case ConnectionState .ProblemDetectedLocally :
117
114
client .CloseConnection (connection );
118
115
Console .WriteLine (" Client disconnected from server" );
119
116
break ;
120
117
121
- case ConnectionState .ProblemDetectedLocally :
122
- client .CloseConnection (connection );
123
- Console .WriteLine (" Client unable to connect" );
124
118
break ;
125
119
}
126
120
};
You can’t perform that action at this time.
0 commit comments