ObjFW  Check-in [21d9bced96]

Overview
Comment:OFHTTPClient: Add missing _closed = true
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 21d9bced96f3ffd3731fce48dc84e1e978a3dc0cb350825d7e4e10405574feaa
User & Date: js on 2018-02-19 22:57:01
Other Links: manifest | tags
Context
2018-02-19
23:41
OFHTTPClient: Add isAtEndOfStream for body stream check-in: 9a983052eb user: js tags: trunk
22:57
OFHTTPClient: Add missing _closed = true check-in: 21d9bced96 user: js tags: trunk
2018-02-18
21:26
OFHTTPClient: Minor type cleanups check-in: 562d4e2f61 user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [55384f926c] to [4da0a43011].

820
821
822
823
824
825
826


827
828
829
830
831
832
833
- (void)close
{
	if (_closed)
		return;

	if (_written < _contentLength)
		@throw [OFTruncatedDataException exception];



	[_socket asyncReadLineWithTarget: _handler
				selector: @selector(socket:didReadLine:context:
					      exception:)
				 context: nil];
}








>
>







820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
- (void)close
{
	if (_closed)
		return;

	if (_written < _contentLength)
		@throw [OFTruncatedDataException exception];

	_closed = true;

	[_socket asyncReadLineWithTarget: _handler
				selector: @selector(socket:didReadLine:context:
					      exception:)
				 context: nil];
}