Index: webrtc/api/datachannel.cc |
diff --git a/webrtc/api/datachannel.cc b/webrtc/api/datachannel.cc |
index af694b7b1c4324d504aaf39947f3dd7536e96609..9812e9bb6a68cdddd50087329f0c49a82f9309e9 100644 |
--- a/webrtc/api/datachannel.cc |
+++ b/webrtc/api/datachannel.cc |
@@ -480,7 +480,9 @@ void DataChannel::SetState(DataState state) { |
if (observer_) { |
observer_->OnStateChange(); |
} |
- if (state_ == kClosed) { |
+ if (state_ == kOpen) { |
+ SignalOpened(this); |
+ } else if (state_ == kClosed) { |
SignalClosed(this); |
} |
} |