Skip to content

Commit 809f50c

Browse files
Allow await on helper start call (#365)
Because the return value of start is void rather than Future<void> it is impossible to await it's completion because it has been flagged as async. Users choosing to allow the call to be completed asynchronously can simply ignore the Future<void> but those wanting to act after registration is complete cannot do so without this change.
1 parent 3d0c551 commit 809f50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class SIPUAHelper extends EventManager {
110110
return _calls[id];
111111
}
112112

113-
void start(UaSettings uaSettings) async {
113+
Future<void> start(UaSettings uaSettings) async {
114114
if (_ua != null) {
115115
logger.w('UA instance already exist!, stopping UA and creating a one...');
116116
_ua!.stop();

0 commit comments

Comments
 (0)