Skip to content

Commit 04711dc

Browse files
authored
Update sip_ua_helper.dart
1 parent c0a7a29 commit 04711dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ class SIPUAHelper extends EventManager {
8181

8282
void unregister([bool all = true]) {
8383
if (this._ua != null) {
84-
assert(!registered, "ERROR: you must call register first.");
84+
if(!registered) {
85+
logger.e("ERROR: you must call register first.");
86+
return;
87+
}
8588
this._ua.unregister(all: all);
8689
} else {
8790
Log.e("ERROR: unregister called, you must call start first.");

0 commit comments

Comments
 (0)