mirror of
https://github.com/amigan/calls.git
synced 2024-11-21 12:29:47 -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) {
|
||||
return;
|
||||
}
|
||||
channel.connect(_wsUri);
|
||||
channel.stream.listen((event) => _handleData(event),
|
||||
onDone: () {
|
||||
connected = false;
|
||||
},
|
||||
onError: (error) => _handleError(error));
|
||||
channel.connect(_wsUri);
|
||||
connected = true;
|
||||
tgCache = TalkgroupCache(channel);
|
||||
notifyListeners();
|
||||
|
|
Loading…
Reference in a new issue