diff --git a/web-service/server/src/peer.js b/web-service/server/src/peer.js
index 86aa78eec1fd8d09181276b1d76a4f2620cf7d3b..ed897e38b5900e67c21c722df68cf28fd8b94675 100644
--- a/web-service/server/src/peer.js
+++ b/web-service/server/src/peer.js
@@ -69,8 +69,8 @@ function Peer(ws) {
 	}
 
 	let close = () => {
-		this.status = kDisconnected;
 		this._notify("disconnect", this);
+		this.status = kDisconnected;
 	}
 
 	let error = (e) => {