Close file stream before upload. Hard code jpg http avatars (temporary). Still broken.

This commit is contained in:
lotodore
2009-03-21 19:56:53 +00:00
parent c72e034d3b
commit a102be7b8c
2 changed files with 10 additions and 14 deletions
+1
View File
@@ -364,6 +364,7 @@ AvatarManager::StoreAvatarInCache(const MD5Buf &md5buf, AvatarFileType avatarFil
if (!o.fail())
{
o.write((const char *)data, size);
o.close();
if (upload && m_useExternalServer)
{
m_uploader->QueueUpload(m_externalServerAddress, m_externalServerUser, m_externalServerPassword, fileName, size);