Add partial deadlock detection in debug mode
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user