-remved p_peer is null error messages, fixes #1150

This commit is contained in:
reduz 2016-01-24 16:59:39 -03:00
parent 45b2fe7e8b
commit 341f8e6d2b

View file

@ -243,7 +243,7 @@ int PacketPeerStream::get_max_packet_size() const {
void PacketPeerStream::set_stream_peer(const Ref<StreamPeer> &p_peer) {
ERR_FAIL_COND(p_peer.is_null());
//ERR_FAIL_COND(p_peer.is_null());
if (p_peer.ptr() != peer.ptr()) {
ring_buffer.advance_read(ring_buffer.data_left()); // reset the ring buffer