libpurple/ft.c

changeset 29820
b81994aa4e15
parent 29781
5ef6c9b585f8
child 29821
8c85f494737a
equal deleted inserted replaced
29819:4c96cfc0636e 29820:b81994aa4e15
1113 } 1113 }
1114 1114
1115 /* Need to indicate the prpl is still ready... */ 1115 /* Need to indicate the prpl is still ready... */
1116 priv->ready |= PURPLE_XFER_READY_PRPL; 1116 priv->ready |= PURPLE_XFER_READY_PRPL;
1117 1117
1118 /* 1118 g_return_if_reached();
1119 * if we requested 0 bytes it's only normal that end up here
1120 * we shouldn't return as we still have something to
1121 * write in priv->buffer
1122 */
1123 if (s != 0)
1124 g_return_if_reached();
1125 } else if (tmp < 0) { 1119 } else if (tmp < 0) {
1126 purple_debug_error("filetransfer", "Unable to read whole buffer.\n"); 1120 purple_debug_error("filetransfer", "Unable to read whole buffer.\n");
1127 purple_xfer_cancel_local(xfer); 1121 purple_xfer_cancel_local(xfer);
1128 return; 1122 return;
1129 } 1123 }

mercurial