Skip to content

Commit 3a792db

Browse files
stanley2058Copilot
andauthored
fix: apply copilot suggestions
Co-authored-by: Copilot <[email protected]>
1 parent 4e1ea47 commit 3a792db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const createYSocketIOServer = async ({
5353

5454
const oriDestroy = server.destroy
5555
server.destroy = async () => {
56-
await oriDestroy.bind(server)()
56+
await oriDestroy.call(server)
5757
await new Promise((resolve) => httpServer.close(resolve))
5858
}
5959
return server

src/y-socket-io/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export class SocketIOProvider extends Observable {
448448
if (!ack) {
449449
this._updateRetries++
450450
if (this.socket.disconnected) return
451-
this.onUpdateDoc(update, origin)
451+
await this.onUpdateDoc(update, origin)
452452
return
453453
} else {
454454
this._updateRetries = 0

0 commit comments

Comments
 (0)