Skip to content

Commit 3f52158

Browse files
committed
fix WebSocket.cs
1 parent cdfb5f0 commit 3f52158

22 files changed

+4
-9
lines changed

websocket-sharp.userprefs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<MonoDevelop.Ide.Workspace ActiveConfiguration="Release_Ubuntu" ctype="Workspace" />
33
<MonoDevelop.Ide.Workbench ActiveDocument="websocket-sharp/WebSocket.cs" ctype="Workbench">
44
<Files>
5-
<File FileName="websocket-sharp/WebSocket.cs" Line="204" Column="1" />
5+
<File FileName="websocket-sharp/WebSocket.cs" Line="1" Column="1" />
66
</Files>
77
</MonoDevelop.Ide.Workbench>
88
<MonoDevelop.Ide.DebuggingService.Breakpoints>

websocket-sharp/WebSocket.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,13 @@ public class WebSocket : IDisposable
4848
private Uri uri;
4949
public string Url
5050
{
51-
get
52-
{
53-
return uri.ToString();
54-
}
51+
get { return uri.ToString(); }
5552
}
5653

5754
private volatile WsState readyState;
5855
public WsState ReadyState
5956
{
60-
get
61-
{
62-
return readyState;
63-
}
57+
get { return readyState; }
6458

6559
private set
6660
{
@@ -315,6 +309,7 @@ private void doHandshake()
315309
{
316310
int j = response[i].IndexOf(":");
317311
protocol = response[i].Substring(j + 1).Trim();
312+
break;
318313
}
319314
}
320315
#if DEBUG
0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
48 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)