From 6f54066c43172fe0197e82fb1034c9ae55d1e1f2 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Apr 2019 15:02:52 +0300 Subject: Add partial deadlock detection in debug mode --- matrix/rooms/room.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'matrix/rooms') diff --git a/matrix/rooms/room.go b/matrix/rooms/room.go index 6334036..717636b 100644 --- a/matrix/rooms/room.go +++ b/matrix/rooms/room.go @@ -21,9 +21,10 @@ import ( "fmt" "os" "sort" - "sync" "time" + sync "github.com/sasha-s/go-deadlock" + "maunium.net/go/mautrix" "maunium.net/go/gomuks/debug" @@ -450,7 +451,7 @@ func (room *Room) GetSessionOwner() string { // NewRoom creates a new Room with the given ID func NewRoom(roomID, owner string) *Room { return &Room{ - Room: mautrix.NewRoom(roomID), + Room: mautrix.NewRoom(roomID), SessionUserID: owner, } } -- cgit v1.2.3