0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

modules/media: Purge the file room after creation if operation does not complete.

Related to #86.
This commit is contained in:
Jason Volk 2019-06-15 12:25:14 -07:00
parent 864cdd6405
commit e3acf68bf2

View file

@ -248,6 +248,10 @@ try
};
create(room, user_id, "file");
const unwind::exceptional purge{[&room]
{
m::room::purge(room);
}};
const size_t written
{