Skip to content

Commit 778159e

Browse files
authored
Merge pull request #40 from buzzyboy/personal/Buzzyboy/FixOnRoomLeave
Use the Room object as the sender instead of the Websocket
2 parents 88b65c4 + 46a92ba commit 778159e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Plugins/Colyseus/Room.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ public void SetConnection (Connection connection)
9595

9696
this.connection.OnClose += (object sender, EventArgs e) => {
9797
if (this.OnLeave != null) {
98-
this.OnLeave.Invoke (sender, e);
98+
this.OnLeave.Invoke (this, e);
9999
}
100100
};
101101

102102
this.connection.OnError += (object sender, ErrorEventArgs e) => {
103103
if (this.OnError != null) {
104-
this.OnError.Invoke(sender, e);
104+
this.OnError.Invoke(this, e);
105105
}
106106
};
107107

0 commit comments

Comments
 (0)