Skip to content

Commit

Permalink
Convert IllegalStateException to warning log in receivedBusy()
Browse files Browse the repository at this point in the history
This is not a fatal condition.  Convert to warning log message in
order to gather more information.
  • Loading branch information
cbrune-signal committed Feb 14, 2020
1 parent ae594a0 commit 5aa6464
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import org.signal.ringrtc.CallId;
import org.signal.ringrtc.Remote;
import org.thoughtcrime.securesms.logging.Log;
import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.recipients.RecipientId;

Expand All @@ -17,6 +18,8 @@
*/
public final class RemotePeer implements Remote, Parcelable
{
private static final String TAG = Log.tag(RemotePeer.class);

@NonNull private final RecipientId recipientId;
@NonNull private CallState callState;
@NonNull private CallId callId;
Expand Down Expand Up @@ -98,7 +101,7 @@ public void remoteRinging() {

public void receivedBusy() {
if (callState != CallState.DIALING) {
throw new IllegalStateException("Cannot transition to RECEIVED_BUSY from state: " + callState);
Log.w(TAG, "RECEIVED_BUSY from unexpected state: " + callState);
}

this.callState = CallState.RECEIVED_BUSY;
Expand Down

0 comments on commit 5aa6464

Please sign in to comment.