Skip to content

Commit 3bb2de4

Browse files
committed
add flush() to unref() see #50
1 parent 0276148 commit 3bb2de4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cores/esp8266/WString.h

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
class StringSumHelper;
3434

3535
typedef char* __FlashStringHelper;
36+
//#define F(str) []() -> const char * { static const char tmp[] ICACHE_RODATA_ATTR = str; return &tmp[0]; }()
3637
#define F(str) str
3738

3839
// The string class

libraries/ESP8266WiFi/src/include/ClientContext.h

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class ClientContext
7777
DEBUGV(":ur %d\r\n", _refcnt);
7878
if (--_refcnt == 0)
7979
{
80+
flush();
8081
if (_pcb)
8182
{
8283
tcp_arg(_pcb, NULL);

0 commit comments

Comments
 (0)