mirror of
https://github.com/amigan/calls.git
synced 2024-11-22 04:49:49 -05:00
connect after
This commit is contained in:
parent
58662a6fe0
commit
dd86eef69f
1 changed files with 1 additions and 1 deletions
|
@ -85,12 +85,12 @@ class Stillbox extends ChangeNotifier {
|
||||||
if (connected == true) {
|
if (connected == true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
channel.connect(_wsUri);
|
||||||
channel.stream.listen((event) => _handleData(event),
|
channel.stream.listen((event) => _handleData(event),
|
||||||
onDone: () {
|
onDone: () {
|
||||||
connected = false;
|
connected = false;
|
||||||
},
|
},
|
||||||
onError: (error) => _handleError(error));
|
onError: (error) => _handleError(error));
|
||||||
channel.connect(_wsUri);
|
|
||||||
connected = true;
|
connected = true;
|
||||||
tgCache = TalkgroupCache(channel);
|
tgCache = TalkgroupCache(channel);
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
|
Loading…
Reference in a new issue