mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
be9dd57806
commit
608c6174dc
|
|
@ -335,7 +335,7 @@ func (app *application) socketReader(bridge *wsBridge) {
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if !session.handleAnswer(command, obj) {
|
if session != nil && !session.handleAnswer(command, obj) {
|
||||||
events <- obj
|
events <- obj
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ func (object *dataObject) RemoveProperty(tag string) DataValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (object *dataObject) PropertyText(tag string, tags ...string) (string, bool) {
|
func (object *dataObject) PropertyText(tag string, tags ...string) (string, bool) {
|
||||||
if node := object.Property(tag, tag); node != nil && node.Type() == TextDataValue {
|
if node := object.Property(tag); node != nil && node.Type() == TextDataValue {
|
||||||
return node.String(), true
|
return node.String(), true
|
||||||
}
|
}
|
||||||
return "", false
|
return "", false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue